#afa331 ≈ Brass
#afa331 is a color from the yellow family, with medium lightness and moderate saturation. In the RGB model it is made of 68.63% red, 63.92% green and 19.22% blue; printed in CMYK it uses 0% cyan, 6.86% magenta, 72% yellow and 31.37% black. Its hue angle is 54.29°, with 56.25% saturation and 43.92% 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 brand accents. Black text on this color reaches a contrast ratio of 8.11:1 (WCAG AAA). The closest named color is Brass (#b5a642), ΔE 2.14.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #999933 |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.3553 |
Shades
#afa331 mixed progressively with black.
Tints
#afa331 mixed progressively with white.
Tones
#afa331 mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-afa331 {
color: #afa331;
}
.bg-afa331 {
background-color: #afa331;
color: #000000;
}
.border-afa331 {
border: 2px solid #afa331;
}
:root {
--color-primary: #afa331;
--color-primary-rgb: 175 163 49;
--color-primary-hsl: 54 56% 44%;
}
.gradient-afa331 {
background: linear-gradient(135deg, #afa331, #7caf31);
}
.shadow-afa331 {
box-shadow: 0 8px 24px rgb(175 163 49 / 0.35);
}
Brass
#afa331 rgb(175, 163, 49) hsl(54, 56%, 44%) Brass
#313daf rgb(49, 61, 175) hsl(234, 56%, 44%) Persian Blue
#31afa3 rgb(49, 175, 163) hsl(174, 56%, 44%) Light Sea Green
#a331af rgb(163, 49, 175) hsl(294, 56%, 44%) Purpureus