#AFAB74#AFAB74
#AFAB74 is a light, moderate yellow. Relative luminance 0.395; OKLCH L 73.1% C 0.074 H 104.5°. Best body text is #000000 at 8.90:1 contrast (WCAG AA passes).
Color values
| HEX | #AFAB74 |
|---|---|
| RGB | rgb(175, 171, 116) |
| HSL | hsl(56, 27%, 57%) |
| HSV | hsv(56, 34%, 69%) |
| CMYK | cmyk(0%, 2.3%, 33.7%, 31.4%) |
| CIE-LAB | lab(69.11, -7.14, 28.89) |
| CIE-LCH | lch(69.11, 29.76, 103.88°) |
| OKLab | oklab(73.12% -0.0186 0.0716) |
| OKLCH | oklch(73.12% 0.074 104.5) |
| XYZ | xyz(35.3948, 39.5015, 22.2796) |
| Luminance | 0.3950 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Khaki (survey)
#AAA662
ΔE00 3.22
Sand
#C2B280
ΔE00 5.16
Darkkhaki
#BDB76B
ΔE00 5.25
Stone (survey)
#ADA587
ΔE00 7.00
Bland
#AFA88B
ΔE00 7.13
Putty
#BEAE8A
ΔE00 7.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFAB74 #7478AF
analogous
#AF8E74 #AFAB74 #96AF74
triadic
#AFAB74 #74AFAB #AB74AF
tetradic
#AFAB74 #74AF8E #7478AF #AF7496
square
#AFAB74 #74AF8E #7478AF #AF7496
split-complementary
#AFAB74 #7496AF #8E74AF
monochromatic
#6B683E #928E54 #AFAB74 #C5C29B #DCDAC2
Accessibility & contrast
On white
2.36
#AFAB74 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.90
#AFAB74 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFAB74
8.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFAB74 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFAB74 | 1.00 | 2.36 | 8.90 | 8.90 |
| #FFFFFF | 2.36 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.90 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.90 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B4A770
Deuteranopia (green-blind)
#B6AA76
Tritanopia (blue-blind)
#B7A49D
Achromatopsia (no color)
#A9A9A9
Design tokens & code
CSS
--color: #afab74; /* rgb */ color: rgb(175, 171, 116); /* oklch */ color: oklch(73.1% 0.074 104.5);
Tailwind
colors: {
custom: {
50: '#c7c39c',
500: '#afab74',
950: '#000000',
},
}SCSS
$custom: #afab74; $custom-light: #c7c39c; $custom-dark: #000000;
JSON
{
"hex": "#afab74",
"rgb": {
"r": 175,
"g": 171,
"b": 116
},
"hsl": {
"h": 55.932,
"s": 26.941,
"l": 57.059
},
"oklch": {
"l": 0.73123,
"c": 0.074,
"h": 104.5
},
"luminance": 0.39501
}Semantic roles & 50–950 ramp
primary
#AFAB74
secondary
#B3B5CB
accent
#6BC365
background
#FCFCF9
surface
#F8F8F2
border
#D1D1CC
text
#13120E
muted
#82817E