#AFAF80#AFAF80
#AFAF80 is a light, moderate yellow. Relative luminance 0.413; OKLCH L 74.2% C 0.064 H 107.9°. Best body text is #000000 at 9.27:1 contrast (WCAG AA passes).
Color values
| HEX | #AFAF80 |
|---|---|
| RGB | rgb(175, 175, 128) |
| HSL | hsl(60, 23%, 59%) |
| HSV | hsv(60, 27%, 69%) |
| CMYK | cmyk(0%, 0%, 26.9%, 31.4%) |
| CIE-LAB | lab(70.41, -7.68, 24.19) |
| CIE-LCH | lch(70.41, 25.38, 107.62°) |
| OKLab | oklab(74.22% -0.0196 0.0608) |
| OKLCH | oklch(74.22% 0.064 107.9) |
| XYZ | xyz(36.9055, 41.3330, 26.4518) |
| Luminance | 0.4133 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Khaki (survey)
#AAA662
ΔE00 5.62
Sand
#C2B280
ΔE00 5.88
Bland
#AFA88B
ΔE00 6.14
Stone (survey)
#ADA587
ΔE00 6.33
Darkkhaki
#BDB76B
ΔE00 6.73
Sage Green
#9CAF88
ΔE00 6.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFAF80 #8080AF
analogous
#AF9880 #AFAF80 #98AF80
triadic
#AFAF80 #80AFAF #AF80AF
tetradic
#AFAF80 #80AF98 #8080AF #AF8098
square
#AFAF80 #80AF98 #8080AF #AF8098
split-complementary
#AFAF80 #8098AF #9880AF
monochromatic
#6F6F46 #94945D #AFAF80 #C7C7A6 #DEDECB
Accessibility & contrast
On white
2.27
#AFAF80 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.27
#AFAF80 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFAF80
9.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFAF80 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFAF80 | 1.00 | 2.27 | 9.27 | 9.27 |
| #FFFFFF | 2.27 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.27 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.27 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B7AB7D
Deuteranopia (green-blind)
#B8AD82
Tritanopia (blue-blind)
#B6A9A3
Achromatopsia (no color)
#ACACAC
Design tokens & code
CSS
--color: #afaf80; /* rgb */ color: rgb(175, 175, 128); /* oklch */ color: oklch(74.2% 0.064 107.9);
Tailwind
colors: {
custom: {
50: '#c7c6a5',
500: '#afaf80',
950: '#000000',
},
}SCSS
$custom: #afaf80; $custom-light: #c7c6a5; $custom-dark: #000000;
JSON
{
"hex": "#afaf80",
"rgb": {
"r": 175,
"g": 175,
"b": 128
},
"hsl": {
"h": 60,
"s": 22.705,
"l": 59.412
},
"oklch": {
"l": 0.74219,
"c": 0.06389,
"h": 107.9
},
"luminance": 0.41332
}Semantic roles & 50–950 ramp
primary
#AFAF80
secondary
#BCBCCF
accent
#69BF69
background
#FCFCFA
surface
#F8F8F4
border
#D1D1CE
text
#13130F
muted
#82827F