#AFAB59#AFAB59
#AFAB59 is a light, moderate yellow. Relative luminance 0.390; OKLCH L 72.7% C 0.105 H 106.2°. Best body text is #000000 at 8.79:1 contrast (WCAG AA passes).
Color values
| HEX | #AFAB59 |
|---|---|
| RGB | rgb(175, 171, 89) |
| HSL | hsl(57, 35%, 52%) |
| HSV | hsv(57, 49%, 69%) |
| CMYK | cmyk(0%, 2.3%, 49.1%, 31.4%) |
| CIE-LAB | lab(68.72, -10.09, 42.38) |
| CIE-LCH | lch(68.72, 43.56, 103.39°) |
| OKLab | oklab(72.69% -0.0293 0.1006) |
| OKLCH | oklch(72.69% 0.105 106.2) |
| XYZ | xyz(34.0461, 38.9620, 15.1762) |
| Luminance | 0.3896 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Khaki (survey)
#AAA662
ΔE00 2.79
Darkkhaki
#BDB76B
ΔE00 3.76
Vomit
#A2A415
ΔE00 7.20
Light Olive
#ACBF69
ΔE00 7.45
Puke
#A5A502
ΔE00 7.76
Tan Green
#A9BE70
ΔE00 8.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFAB59 #595DAF
analogous
#AF8059 #AFAB59 #88AF59
triadic
#AFAB59 #59AFAB #AB59AF
tetradic
#AFAB59 #59AF80 #595DAF #AF5988
square
#AFAB59 #59AF80 #595DAF #AF5988
split-complementary
#AFAB59 #5988AF #8059AF
monochromatic
#605D2E #898642 #AFAB59 #C3C082 #D7D5AC
Accessibility & contrast
On white
2.39
#AFAB59 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.79
#AFAB59 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFAB59
8.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFAB59 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFAB59 | 1.00 | 2.39 | 8.79 | 8.79 |
| #FFFFFF | 2.39 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.79 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.79 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B7A652
Deuteranopia (green-blind)
#B9A95D
Tritanopia (blue-blind)
#BAA298
Achromatopsia (no color)
#A8A8A8
Design tokens & code
CSS
--color: #afab59; /* rgb */ color: rgb(175, 171, 89); /* oklch */ color: oklch(72.7% 0.105 106.2);
Tailwind
colors: {
custom: {
50: '#c9c38a',
500: '#afab59',
950: '#000000',
},
}SCSS
$custom: #afab59; $custom-light: #c9c38a; $custom-dark: #000000;
JSON
{
"hex": "#afab59",
"rgb": {
"r": 175,
"g": 171,
"b": 89
},
"hsl": {
"h": 57.209,
"s": 34.959,
"l": 51.765
},
"oklch": {
"l": 0.72687,
"c": 0.10479,
"h": 106.2
},
"luminance": 0.38961
}Semantic roles & 50–950 ramp
primary
#AFAB59
secondary
#9FA1C5
accent
#62CB5D
background
#FCFBF8
surface
#F8F7F0
border
#D1D0CB
text
#13120C
muted
#82817D