#af940f ≈ Brass
#af940f is a color from the yellow family, with low lightness and strong saturation. In the RGB model it is made of 68.63% red, 58.04% green and 5.88% blue; printed in CMYK it uses 0% cyan, 15.43% magenta, 91.43% yellow and 31.37% black. Its hue angle is 49.88°, with 84.21% saturation and 37.25% lightness in HSL. It is a warm color, often associated with optimism, attention and joy. Designers typically use it for highlights and warnings, children's products and call-to-action buttons. Black text on this color reaches a contrast ratio of 7.07:1 (WCAG AAA). The closest named color is Brass (#b5a642), ΔE 6.7.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #999900 |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.3033 |
Shades
#af940f mixed progressively with black.
Tints
#af940f mixed progressively with white.
Tones
#af940f mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-af940f {
color: #af940f;
}
.bg-af940f {
background-color: #af940f;
color: #000000;
}
.border-af940f {
border: 2px solid #af940f;
}
:root {
--color-primary: #af940f;
--color-primary-rgb: 175 148 15;
--color-primary-hsl: 50 84% 37%;
}
.gradient-af940f {
background: linear-gradient(135deg, #af940f, #7aaf0f);
}
.shadow-af940f {
box-shadow: 0 8px 24px rgb(175 148 15 / 0.35);
}
Brass
#af940f rgb(175, 148, 15) hsl(50, 84%, 37%) Brass
#0f2aaf rgb(15, 42, 175) hsl(230, 84%, 37%) Egyptian Blue
#0faf94 rgb(15, 175, 148) hsl(170, 84%, 37%) Jungle Green
#940faf rgb(148, 15, 175) hsl(290, 84%, 37%) Dark Violet