#AFA771#AFA771
#AFA771 is a light, moderate yellow. Relative luminance 0.379; OKLCH L 72.2% C 0.073 H 100.8°. Best body text is #000000 at 8.59:1 contrast (WCAG AA passes).
Color values
| HEX | #AFA771 |
|---|---|
| RGB | rgb(175, 167, 113) |
| HSL | hsl(52, 28%, 56%) |
| HSV | hsv(52, 35%, 69%) |
| CMYK | cmyk(0%, 4.6%, 35.4%, 31.4%) |
| CIE-LAB | lab(67.98, -5.39, 29.01) |
| CIE-LCH | lch(67.98, 29.50, 100.52°) |
| OKLab | oklab(72.21% -0.0137 0.0718) |
| OKLCH | oklch(72.21% 0.073 100.8) |
| XYZ | xyz(34.4790, 37.9445, 21.1273) |
| Luminance | 0.3794 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Khaki (survey)
#AAA662
ΔE00 3.27
Sand
#C2B280
ΔE00 4.75
Darkkhaki
#BDB76B
ΔE00 5.97
Stone (survey)
#ADA587
ΔE00 6.42
Putty
#BEAE8A
ΔE00 6.63
Bland
#AFA88B
ΔE00 6.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFA771 #7179AF
analogous
#AF8871 #AFA771 #98AF71
triadic
#AFA771 #71AFA7 #A771AF
tetradic
#AFA771 #71AF88 #7179AF #AF7198
square
#AFA771 #71AF88 #7179AF #AF7198
split-complementary
#AFA771 #7198AF #8871AF
monochromatic
#6A643C #918952 #AFA771 #C5BF98 #DBD8BF
Accessibility & contrast
On white
2.45
#AFA771 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.59
#AFA771 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFA771
8.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFA771 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFA771 | 1.00 | 2.45 | 8.59 | 8.59 |
| #FFFFFF | 2.45 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.59 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.59 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B1A46D
Deuteranopia (green-blind)
#B3A773
Tritanopia (blue-blind)
#B8A099
Achromatopsia (no color)
#A6A6A6
Design tokens & code
CSS
--color: #afa771; /* rgb */ color: rgb(175, 167, 113); /* oklch */ color: oklch(72.2% 0.073 100.8);
Tailwind
colors: {
custom: {
50: '#c8c19a',
500: '#afa771',
950: '#000000',
},
}SCSS
$custom: #afa771; $custom-light: #c8c19a; $custom-dark: #000000;
JSON
{
"hex": "#afa771",
"rgb": {
"r": 175,
"g": 167,
"b": 113
},
"hsl": {
"h": 52.258,
"s": 27.928,
"l": 56.471
},
"oklch": {
"l": 0.72209,
"c": 0.0731,
"h": 100.8
},
"luminance": 0.37944
}Semantic roles & 50–950 ramp
primary
#AFA771
secondary
#B1B4CB
accent
#70C464
background
#FCFBF9
surface
#F8F7F2
border
#D1D0CC
text
#13120E
muted
#82817E