#afa340 ≈ Brass
#afa340 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 25.1% blue; printed in CMYK it uses 0% cyan, 6.86% magenta, 63.43% yellow and 31.37% black. Its hue angle is 53.51°, with 46.44% saturation and 46.86% 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.14:1 (WCAG AAA). The closest named color is Brass (#b5a642), ΔE 1.37.
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.3568 |
Shades
#afa340 mixed progressively with black.
Tints
#afa340 mixed progressively with white.
Tones
#afa340 mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-afa340 {
color: #afa340;
}
.bg-afa340 {
background-color: #afa340;
color: #000000;
}
.border-afa340 {
border: 2px solid #afa340;
}
:root {
--color-primary: #afa340;
--color-primary-rgb: 175 163 64;
--color-primary-hsl: 54 46% 47%;
}
.gradient-afa340 {
background: linear-gradient(135deg, #afa340, #83af40);
}
.shadow-afa340 {
box-shadow: 0 8px 24px rgb(175 163 64 / 0.35);
}
Brass
#afa340 rgb(175, 163, 64) hsl(54, 46%, 47%) Brass
#404caf rgb(64, 76, 175) hsl(234, 46%, 47%) Ocean Blue
#40afa3 rgb(64, 175, 163) hsl(174, 46%, 47%) Light Sea Green
#a340af rgb(163, 64, 175) hsl(294, 46%, 47%) Purpureus