#AFA42D#AFA42D
#AFA42D is a light, vivid yellow. Relative luminance 0.359; OKLCH L 70.7% C 0.134 H 103.9°. Best body text is #000000 at 8.17:1 contrast (WCAG AA passes).
Color values
| HEX | #AFA42D |
|---|---|
| RGB | rgb(175, 164, 45) |
| HSL | hsl(55, 59%, 43%) |
| HSV | hsv(55, 74%, 69%) |
| CMYK | cmyk(0%, 6.3%, 74.3%, 31.4%) |
| CIE-LAB | lab(66.41, -9.46, 59.21) |
| CIE-LCH | lch(66.41, 59.96, 99.07°) |
| OKLab | oklab(70.72% -0.0323 0.1304) |
| OKLCH | oklch(70.72% 0.134 103.9) |
| XYZ | xyz(31.4297, 35.8556, 7.7474) |
| Luminance | 0.3585 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke
#A5A502
ΔE00 3.58
Vomit
#A2A415
ΔE00 3.72
Muddy Yellow
#BFAC05
ΔE00 4.61
Brown Yellow
#B29705
ΔE00 5.79
Olive Yellow
#C2B709
ΔE00 6.37
Brownish Yellow
#C9B003
ΔE00 6.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFA42D #2D38AF
analogous
#AF632D #AFA42D #79AF2D
triadic
#AFA42D #2DAFA4 #A42DAF
tetradic
#AFA42D #2DAF63 #2D38AF #AF2D79
square
#AFA42D #2DAF63 #2D38AF #AF2D79
split-complementary
#AFA42D #2D79AF #632DAF
monochromatic
#4E4914 #7E7620 #AFA42D #D0C549 #DDD47A
Accessibility & contrast
On white
2.57
#AFA42D on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.17
#AFA42D on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFA42D
8.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFA42D | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFA42D | 1.00 | 2.57 | 8.17 | 8.17 |
| #FFFFFF | 2.57 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.17 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.17 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B39E16
Deuteranopia (green-blind)
#B7A436
Tritanopia (blue-blind)
#BC988D
Achromatopsia (no color)
#A1A1A1
Design tokens & code
CSS
--color: #afa42d; /* rgb */ color: rgb(175, 164, 45); /* oklch */ color: oklch(70.7% 0.134 103.9);
Tailwind
colors: {
custom: {
50: '#cbbe6f',
500: '#afa42d',
950: '#000000',
},
}SCSS
$custom: #afa42d; $custom-light: #cbbe6f; $custom-dark: #000000;
JSON
{
"hex": "#afa42d",
"rgb": {
"r": 175,
"g": 164,
"b": 45
},
"hsl": {
"h": 54.923,
"s": 59.091,
"l": 43.137
},
"oklch": {
"l": 0.70719,
"c": 0.13432,
"h": 103.9
},
"luminance": 0.35854
}Semantic roles & 50–950 ramp
primary
#AFA42D
secondary
#737AC5
accent
#53E246
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141208
muted
#82817B