#AFAF74#AFAF74
#AFAF74 is a light, moderate yellow. Relative luminance 0.410; OKLCH L 74.0% C 0.079 H 108.2°. Best body text is #000000 at 9.21:1 contrast (WCAG AA passes).
Color values
| HEX | #AFAF74 |
|---|---|
| RGB | rgb(175, 175, 116) |
| HSL | hsl(60, 27%, 57%) |
| HSV | hsv(60, 34%, 69%) |
| CMYK | cmyk(0%, 0%, 33.7%, 31.4%) |
| CIE-LAB | lab(70.20, -9.25, 30.32) |
| CIE-LCH | lch(70.20, 31.70, 106.97°) |
| OKLab | oklab(73.99% -0.0246 0.075) |
| OKLCH | oklch(73.99% 0.079 108.2) |
| XYZ | xyz(36.1619, 41.0355, 22.5353) |
| Luminance | 0.4103 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Khaki (survey)
#AAA662
ΔE00 3.47
Darkkhaki
#BDB76B
ΔE00 4.49
Sand
#C2B280
ΔE00 6.10
Tan Green
#A9BE70
ΔE00 6.71
Light Olive
#ACBF69
ΔE00 7.10
Sage Green
#9CAF88
ΔE00 8.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFAF74 #7474AF
analogous
#AF9274 #AFAF74 #92AF74
triadic
#AFAF74 #74AFAF #AF74AF
tetradic
#AFAF74 #74AF92 #7474AF #AF7492
square
#AFAF74 #74AF92 #7474AF #AF7492
split-complementary
#AFAF74 #7492AF #9274AF
monochromatic
#6B6B3E #929254 #AFAF74 #C5C59B #DCDCC2
Accessibility & contrast
On white
2.28
#AFAF74 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.21
#AFAF74 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFAF74
9.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFAF74 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFAF74 | 1.00 | 2.28 | 9.21 | 9.21 |
| #FFFFFF | 2.28 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.21 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.21 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B8AA70
Deuteranopia (green-blind)
#B9AD76
Tritanopia (blue-blind)
#B7A8A0
Achromatopsia (no color)
#ACACAC
Design tokens & code
CSS
--color: #afaf74; /* rgb */ color: rgb(175, 175, 116); /* oklch */ color: oklch(74.0% 0.079 108.2);
Tailwind
colors: {
custom: {
50: '#c8c69c',
500: '#afaf74',
950: '#000000',
},
}SCSS
$custom: #afaf74; $custom-light: #c8c69c; $custom-dark: #000000;
JSON
{
"hex": "#afaf74",
"rgb": {
"r": 175,
"g": 175,
"b": 116
},
"hsl": {
"h": 60,
"s": 26.941,
"l": 57.059
},
"oklch": {
"l": 0.73986,
"c": 0.0789,
"h": 108.2
},
"luminance": 0.41035
}Semantic roles & 50–950 ramp
primary
#AFAF74
secondary
#B3B3CB
accent
#65C365
background
#FCFCF9
surface
#F8F8F2
border
#D1D1CC
text
#13130E
muted
#82827E