#AFA877#AFA877
#AFA877 is a light, moderate yellow. Relative luminance 0.385; OKLCH L 72.5% C 0.067 H 101.0°. Best body text is #000000 at 8.69:1 contrast (WCAG AA passes).
Color values
| HEX | #AFA877 |
|---|---|
| RGB | rgb(175, 168, 119) |
| HSL | hsl(53, 26%, 58%) |
| HSV | hsv(53, 32%, 69%) |
| CMYK | cmyk(0%, 4%, 32%, 31.4%) |
| CIE-LAB | lab(68.35, -5.16, 26.28) |
| CIE-LCH | lch(68.35, 26.78, 101.12°) |
| OKLab | oklab(72.54% -0.0127 0.0656) |
| OKLCH | oklch(72.54% 0.067 101) |
| XYZ | xyz(35.0119, 38.4519, 23.0268) |
| Luminance | 0.3845 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Khaki (survey)
#AAA662
ΔE00 4.35
Sand
#C2B280
ΔE00 4.59
Stone (survey)
#ADA587
ΔE00 5.36
Bland
#AFA88B
ΔE00 5.61
Putty
#BEAE8A
ΔE00 5.96
Darkkhaki
#BDB76B
ΔE00 6.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFA877 #777EAF
analogous
#AF8C77 #AFA877 #9AAF77
triadic
#AFA877 #77AFA8 #A877AF
tetradic
#AFA877 #77AF8C #777EAF #AF779A
square
#AFA877 #77AF8C #777EAF #AF779A
split-complementary
#AFA877 #779AAF #8C77AF
monochromatic
#6C6640 #938B56 #AFA877 #C6C19E #DCD9C4
Accessibility & contrast
On white
2.42
#AFA877 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.69
#AFA877 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFA877
8.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFA877 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFA877 | 1.00 | 2.42 | 8.69 | 8.69 |
| #FFFFFF | 2.42 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.69 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.69 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B1A574
Deuteranopia (green-blind)
#B3A879
Tritanopia (blue-blind)
#B7A19B
Achromatopsia (no color)
#A7A7A7
Design tokens & code
CSS
--color: #afa877; /* rgb */ color: rgb(175, 168, 119); /* oklch */ color: oklch(72.5% 0.067 101.0);
Tailwind
colors: {
custom: {
50: '#c7c19e',
500: '#afa877',
950: '#000000',
},
}SCSS
$custom: #afa877; $custom-light: #c7c19e; $custom-dark: #000000;
JSON
{
"hex": "#afa877",
"rgb": {
"r": 175,
"g": 168,
"b": 119
},
"hsl": {
"h": 52.5,
"s": 25.926,
"l": 57.647
},
"oklch": {
"l": 0.72537,
"c": 0.06681,
"h": 101
},
"luminance": 0.38451
}Semantic roles & 50–950 ramp
primary
#AFA877
secondary
#B6B8CC
accent
#71C265
background
#FCFBF9
surface
#F8F7F2
border
#D1D0CC
text
#13120E
muted
#82817E