#AFA978#AFA978
#AFA978 is a light, moderate yellow. Relative luminance 0.388; OKLCH L 72.8% C 0.067 H 102.0°. Best body text is #000000 at 8.77:1 contrast (WCAG AA passes).
Color values
| HEX | #AFA978 |
|---|---|
| RGB | rgb(175, 169, 120) |
| HSL | hsl(53, 26%, 58%) |
| HSV | hsv(53, 31%, 69%) |
| CMYK | cmyk(0%, 3.4%, 31.4%, 31.4%) |
| CIE-LAB | lab(68.64, -5.57, 26.12) |
| CIE-LCH | lch(68.64, 26.71, 102.03°) |
| OKLab | oklab(72.77% -0.0138 0.0652) |
| OKLCH | oklch(72.77% 0.067 102) |
| XYZ | xyz(35.2576, 38.8467, 23.4065) |
| Luminance | 0.3885 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Khaki (survey)
#AAA662
ΔE00 4.36
Sand
#C2B280
ΔE00 4.69
Stone (survey)
#ADA587
ΔE00 5.47
Bland
#AFA88B
ΔE00 5.65
Putty
#BEAE8A
ΔE00 6.12
Darkkhaki
#BDB76B
ΔE00 6.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFA978 #787EAF
analogous
#AF8E78 #AFA978 #99AF78
triadic
#AFA978 #78AFA9 #A978AF
tetradic
#AFA978 #78AF8E #787EAF #AF7899
square
#AFA978 #78AF8E #787EAF #AF7899
split-complementary
#AFA978 #7899AF #8E78AF
monochromatic
#6C6840 #938C57 #AFA978 #C6C19E #DDDAC5
Accessibility & contrast
On white
2.39
#AFA978 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.77
#AFA978 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFA978
8.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFA978 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFA978 | 1.00 | 2.39 | 8.77 | 8.77 |
| #FFFFFF | 2.39 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.77 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.77 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B2A675
Deuteranopia (green-blind)
#B4A97A
Tritanopia (blue-blind)
#B7A29C
Achromatopsia (no color)
#A7A7A7
Design tokens & code
CSS
--color: #afa978; /* rgb */ color: rgb(175, 169, 120); /* oklch */ color: oklch(72.8% 0.067 102.0);
Tailwind
colors: {
custom: {
50: '#c7c29f',
500: '#afa978',
950: '#000000',
},
}SCSS
$custom: #afa978; $custom-light: #c7c29f; $custom-dark: #000000;
JSON
{
"hex": "#afa978",
"rgb": {
"r": 175,
"g": 169,
"b": 120
},
"hsl": {
"h": 53.455,
"s": 25.581,
"l": 57.843
},
"oklch": {
"l": 0.72771,
"c": 0.06669,
"h": 102
},
"luminance": 0.38846
}Semantic roles & 50–950 ramp
primary
#AFA978
secondary
#B6B9CC
accent
#70C266
background
#FCFBF9
surface
#F8F7F2
border
#D1D0CC
text
#13120E
muted
#82817E