#AFAB2A#AFAB2A
#AFAB2A is a light, vivid yellow. Relative luminance 0.384; OKLCH L 72.2% C 0.142 H 107.6°. Best body text is #000000 at 8.68:1 contrast (WCAG AA passes).
Color values
| HEX | #AFAB2A |
|---|---|
| RGB | rgb(175, 171, 42) |
| HSL | hsl(58, 61%, 43%) |
| HSV | hsv(58, 76%, 69%) |
| CMYK | cmyk(0%, 2.3%, 76%, 31.4%) |
| CIE-LAB | lab(68.32, -13.23, 62.02) |
| CIE-LCH | lch(68.32, 63.42, 102.05°) |
| OKLab | oklab(72.24% -0.0432 0.1358) |
| OKLCH | oklch(72.24% 0.142 107.6) |
| XYZ | xyz(32.6613, 38.4081, 7.8831) |
| Luminance | 0.3841 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke
#A5A502
ΔE00 2.69
Vomit
#A2A415
ΔE00 2.91
Mustard Green
#A8B504
ΔE00 4.74
Muddy Yellow
#BFAC05
ΔE00 4.82
Olive Yellow
#C2B709
ΔE00 5.01
Puke Green
#9AAE07
ΔE00 5.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFAB2A #2A2EAF
analogous
#AF682A #AFAB2A #71AF2A
triadic
#AFAB2A #2AAFAB #AB2AAF
tetradic
#AFAB2A #2AAF68 #2A2EAF #AF2A71
square
#AFAB2A #2AAF68 #2A2EAF #AF2A71
split-complementary
#AFAB2A #2A71AF #682AAF
monochromatic
#4C4B12 #7E7B1E #AFAB2A #D2CE44 #DEDB75
Accessibility & contrast
On white
2.42
#AFAB2A on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.68
#AFAB2A on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFAB2A
8.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFAB2A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFAB2A | 1.00 | 2.42 | 8.68 | 8.68 |
| #FFFFFF | 2.42 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.68 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.68 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BAA40A
Deuteranopia (green-blind)
#BCA934
Tritanopia (blue-blind)
#BC9F93
Achromatopsia (no color)
#A7A7A7
Design tokens & code
CSS
--color: #afab2a; /* rgb */ color: rgb(175, 171, 42); /* oklch */ color: oklch(72.2% 0.142 107.6);
Tailwind
colors: {
custom: {
50: '#cbc36e',
500: '#afab2a',
950: '#000000',
},
}SCSS
$custom: #afab2a; $custom-light: #cbc36e; $custom-dark: #000000;
JSON
{
"hex": "#afab2a",
"rgb": {
"r": 175,
"g": 171,
"b": 42
},
"hsl": {
"h": 58.195,
"s": 61.29,
"l": 42.549
},
"oklch": {
"l": 0.72236,
"c": 0.14249,
"h": 107.6
},
"luminance": 0.38407
}Semantic roles & 50–950 ramp
primary
#AFAB2A
secondary
#6F72C6
accent
#48E443
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141208
muted
#82817B