#AFAB71#AFAB71
#AFAB71 is a light, moderate yellow. Relative luminance 0.394; OKLCH L 73.1% C 0.078 H 104.8°. Best body text is #000000 at 8.89:1 contrast (WCAG AA passes).
Color values
| HEX | #AFAB71 |
|---|---|
| RGB | rgb(175, 171, 113) |
| HSL | hsl(56, 28%, 56%) |
| HSV | hsv(56, 35%, 69%) |
| CMYK | cmyk(0%, 2.3%, 35.4%, 31.4%) |
| CIE-LAB | lab(69.06, -7.51, 30.42) |
| CIE-LCH | lch(69.06, 31.34, 103.87°) |
| OKLab | oklab(73.07% -0.0198 0.0751) |
| OKLCH | oklch(73.07% 0.078 104.8) |
| XYZ | xyz(35.2232, 39.4328, 21.3754) |
| Luminance | 0.3943 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Khaki (survey)
#AAA662
ΔE00 2.65
Darkkhaki
#BDB76B
ΔE00 4.78
Sand
#C2B280
ΔE00 5.37
Stone (survey)
#ADA587
ΔE00 7.59
Bland
#AFA88B
ΔE00 7.74
Putty
#BEAE8A
ΔE00 7.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFAB71 #7175AF
analogous
#AF8C71 #AFAB71 #94AF71
triadic
#AFAB71 #71AFAB #AB71AF
tetradic
#AFAB71 #71AF8C #7175AF #AF7194
square
#AFAB71 #71AF8C #7175AF #AF7194
split-complementary
#AFAB71 #7194AF #8C71AF
monochromatic
#6A673C #918D52 #AFAB71 #C5C298 #DBD9BF
Accessibility & contrast
On white
2.36
#AFAB71 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.89
#AFAB71 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFAB71
8.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFAB71 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFAB71 | 1.00 | 2.36 | 8.89 | 8.89 |
| #FFFFFF | 2.36 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.89 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.89 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B5A76D
Deuteranopia (green-blind)
#B6AA73
Tritanopia (blue-blind)
#B8A49C
Achromatopsia (no color)
#A9A9A9
Design tokens & code
CSS
--color: #afab71; /* rgb */ color: rgb(175, 171, 113); /* oklch */ color: oklch(73.1% 0.078 104.8);
Tailwind
colors: {
custom: {
50: '#c8c39a',
500: '#afab71',
950: '#000000',
},
}SCSS
$custom: #afab71; $custom-light: #c8c39a; $custom-dark: #000000;
JSON
{
"hex": "#afab71",
"rgb": {
"r": 175,
"g": 171,
"b": 113
},
"hsl": {
"h": 56.129,
"s": 27.928,
"l": 56.471
},
"oklch": {
"l": 0.73068,
"c": 0.07766,
"h": 104.8
},
"luminance": 0.39432
}Semantic roles & 50–950 ramp
primary
#AFAB71
secondary
#B1B3CB
accent
#6AC464
background
#FCFCF9
surface
#F8F8F2
border
#D1D1CC
text
#13120E
muted
#82817E