#AFA42B#AFA42B
#AFA42B is a light, vivid yellow. Relative luminance 0.358; OKLCH L 70.7% C 0.135 H 104.0°. Best body text is #000000 at 8.17:1 contrast (WCAG AA passes).
Color values
| HEX | #AFA42B |
|---|---|
| RGB | rgb(175, 164, 43) |
| HSL | hsl(55, 61%, 43%) |
| HSV | hsv(55, 75%, 69%) |
| CMYK | cmyk(0%, 6.3%, 75.4%, 31.4%) |
| CIE-LAB | lab(66.40, -9.54, 59.90) |
| CIE-LCH | lch(66.40, 60.66, 99.05°) |
| OKLab | oklab(70.71% -0.0328 0.1315) |
| OKLCH | oklch(70.71% 0.135 104) |
| XYZ | xyz(31.3921, 35.8406, 7.5494) |
| Luminance | 0.3584 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke
#A5A502
ΔE00 3.46
Vomit
#A2A415
ΔE00 3.66
Muddy Yellow
#BFAC05
ΔE00 4.49
Brown Yellow
#B29705
ΔE00 5.74
Olive Yellow
#C2B709
ΔE00 6.27
Brownish Yellow
#C9B003
ΔE00 6.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFA42B #2B36AF
analogous
#AF622B #AFA42B #78AF2B
triadic
#AFA42B #2BAFA4 #A42BAF
tetradic
#AFA42B #2BAF62 #2B36AF #AF2B78
square
#AFA42B #2BAF62 #2B36AF #AF2B78
split-complementary
#AFA42B #2B78AF #622BAF
monochromatic
#4D4813 #7E761F #AFA42B #D1C646 #DED577
Accessibility & contrast
On white
2.57
#AFA42B on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.17
#AFA42B on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFA42B
8.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFA42B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFA42B | 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)
#B39E12
Deuteranopia (green-blind)
#B7A434
Tritanopia (blue-blind)
#BC988D
Achromatopsia (no color)
#A1A1A1
Design tokens & code
CSS
--color: #afa42b; /* rgb */ color: rgb(175, 164, 43); /* oklch */ color: oklch(70.7% 0.135 104.0);
Tailwind
colors: {
custom: {
50: '#cbbe6e',
500: '#afa42b',
950: '#000000',
},
}SCSS
$custom: #afa42b; $custom-light: #cbbe6e; $custom-dark: #000000;
JSON
{
"hex": "#afa42b",
"rgb": {
"r": 175,
"g": 164,
"b": 43
},
"hsl": {
"h": 55,
"s": 60.55,
"l": 42.745
},
"oklch": {
"l": 0.70706,
"c": 0.13548,
"h": 104
},
"luminance": 0.35839
}Semantic roles & 50–950 ramp
primary
#AFA42B
secondary
#7078C5
accent
#51E444
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#141208
muted
#82817B