#AFAB2B#AFAB2B
#AFAB2B 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 | #AFAB2B |
|---|---|
| RGB | rgb(175, 171, 43) |
| HSL | hsl(58, 61%, 43%) |
| HSV | hsv(58, 75%, 69%) |
| CMYK | cmyk(0%, 2.3%, 75.4%, 31.4%) |
| CIE-LAB | lab(68.33, -13.19, 61.70) |
| CIE-LCH | lch(68.33, 63.09, 102.07°) |
| OKLab | oklab(72.24% -0.043 0.1353) |
| OKLCH | oklch(72.24% 0.142 107.6) |
| XYZ | xyz(32.6794, 38.4153, 7.9785) |
| Luminance | 0.3841 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke
#A5A502
ΔE00 2.74
Vomit
#A2A415
ΔE00 2.94
Mustard Green
#A8B504
ΔE00 4.77
Muddy Yellow
#BFAC05
ΔE00 4.86
Olive Yellow
#C2B709
ΔE00 5.05
Puke Green
#9AAE07
ΔE00 5.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFAB2B #2B2FAF
analogous
#AF692B #AFAB2B #71AF2B
triadic
#AFAB2B #2BAFAB #AB2BAF
tetradic
#AFAB2B #2BAF69 #2B2FAF #AF2B71
square
#AFAB2B #2BAF69 #2B2FAF #AF2B71
split-complementary
#AFAB2B #2B71AF #692BAF
monochromatic
#4D4B13 #7E7B1F #AFAB2B #D1CD46 #DEDA77
Accessibility & contrast
On white
2.42
#AFAB2B on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.68
#AFAB2B on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFAB2B
8.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFAB2B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFAB2B | 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)
#BAA40D
Deuteranopia (green-blind)
#BCA935
Tritanopia (blue-blind)
#BC9F93
Achromatopsia (no color)
#A7A7A7
Design tokens & code
CSS
--color: #afab2b; /* rgb */ color: rgb(175, 171, 43); /* oklch */ color: oklch(72.2% 0.142 107.6);
Tailwind
colors: {
custom: {
50: '#cbc36f',
500: '#afab2b',
950: '#000000',
},
}SCSS
$custom: #afab2b; $custom-light: #cbc36f; $custom-dark: #000000;
JSON
{
"hex": "#afab2b",
"rgb": {
"r": 175,
"g": 171,
"b": 43
},
"hsl": {
"h": 58.182,
"s": 60.55,
"l": 42.745
},
"oklch": {
"l": 0.72242,
"c": 0.14194,
"h": 107.6
},
"luminance": 0.38414
}Semantic roles & 50–950 ramp
primary
#AFAB2B
secondary
#7073C5
accent
#49E444
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141208
muted
#82817B