#AFAF7E#AFAF7E
#AFAF7E is a light, moderate yellow. Relative luminance 0.413; OKLCH L 74.2% C 0.066 H 107.9°. Best body text is #000000 at 9.26:1 contrast (WCAG AA passes).
Color values
| HEX | #AFAF7E |
|---|---|
| RGB | rgb(175, 175, 126) |
| HSL | hsl(60, 23%, 59%) |
| HSV | hsv(60, 28%, 69%) |
| CMYK | cmyk(0%, 0%, 28%, 31.4%) |
| CIE-LAB | lab(70.37, -7.95, 25.21) |
| CIE-LCH | lch(70.37, 26.44, 107.51°) |
| OKLab | oklab(74.18% -0.0204 0.0632) |
| OKLCH | oklch(74.18% 0.066 107.9) |
| XYZ | xyz(36.7752, 41.2808, 25.7653) |
| Luminance | 0.4128 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Khaki (survey)
#AAA662
ΔE00 5.21
Sand
#C2B280
ΔE00 5.83
Darkkhaki
#BDB76B
ΔE00 6.31
Bland
#AFA88B
ΔE00 6.52
Stone (survey)
#ADA587
ΔE00 6.67
Sage Green
#9CAF88
ΔE00 6.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFAF7E #7E7EAF
analogous
#AF977E #AFAF7E #97AF7E
triadic
#AFAF7E #7EAFAF #AF7EAF
tetradic
#AFAF7E #7EAF97 #7E7EAF #AF7E97
square
#AFAF7E #7EAF97 #7E7EAF #AF7E97
split-complementary
#AFAF7E #7E97AF #977EAF
monochromatic
#6E6E44 #94945C #AFAF7E #C6C6A4 #DEDECA
Accessibility & contrast
On white
2.27
#AFAF7E on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.26
#AFAF7E on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFAF7E
9.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFAF7E | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFAF7E | 1.00 | 2.27 | 9.26 | 9.26 |
| #FFFFFF | 2.27 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.26 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.26 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B7AB7B
Deuteranopia (green-blind)
#B8AD80
Tritanopia (blue-blind)
#B6A9A2
Achromatopsia (no color)
#ACACAC
Design tokens & code
CSS
--color: #afaf7e; /* rgb */ color: rgb(175, 175, 126); /* oklch */ color: oklch(74.2% 0.066 107.9);
Tailwind
colors: {
custom: {
50: '#c7c6a3',
500: '#afaf7e',
950: '#000000',
},
}SCSS
$custom: #afaf7e; $custom-light: #c7c6a3; $custom-dark: #000000;
JSON
{
"hex": "#afaf7e",
"rgb": {
"r": 175,
"g": 175,
"b": 126
},
"hsl": {
"h": 60,
"s": 23.445,
"l": 59.02
},
"oklch": {
"l": 0.74178,
"c": 0.06644,
"h": 107.9
},
"luminance": 0.4128
}Semantic roles & 50–950 ramp
primary
#AFAF7E
secondary
#BBBBCE
accent
#68C068
background
#FCFCFA
surface
#F8F8F4
border
#D1D1CE
text
#13130F
muted
#82827F