#AFA266#AFA266
#AFA266 is a light, moderate yellow. Relative luminance 0.359; OKLCH L 70.9% C 0.081 H 97.4°. Best body text is #000000 at 8.18:1 contrast (WCAG AA passes).
Color values
| HEX | #AFA266 |
|---|---|
| RGB | rgb(175, 162, 102) |
| HSL | hsl(49, 31%, 54%) |
| HSV | hsv(49, 42%, 69%) |
| CMYK | cmyk(0%, 7.4%, 41.7%, 31.4%) |
| CIE-LAB | lab(66.45, -3.99, 32.88) |
| CIE-LCH | lch(66.45, 33.13, 96.92°) |
| OKLab | oklab(70.95% -0.0105 0.0803) |
| OKLCH | oklch(70.95% 0.081 97.4) |
| XYZ | xyz(32.9985, 35.9150, 17.7618) |
| Luminance | 0.3591 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Khaki (survey)
#AAA662
ΔE00 3.35
Sand
#C2B280
ΔE00 5.62
Sandy Brown
#C4A661
ΔE00 5.85
Dark Khaki
#9B8F55
ΔE00 6.12
Sandstone
#C9AE74
ΔE00 6.39
Dark Beige
#AC9362
ΔE00 6.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFA266 #6673AF
analogous
#AF7E66 #AFA266 #98AF66
triadic
#AFA266 #66AFA2 #A266AF
tetradic
#AFA266 #66AF7E #6673AF #AF6698
square
#AFA266 #66AF7E #6673AF #AF6698
split-complementary
#AFA266 #6698AF #7E66AF
monochromatic
#665D35 #8E824A #AFA266 #C4BA8E #D9D3B6
Accessibility & contrast
On white
2.57
#AFA266 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.18
#AFA266 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFA266
8.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFA266 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFA266 | 1.00 | 2.57 | 8.18 | 8.18 |
| #FFFFFF | 2.57 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.18 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.18 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#AD9F61
Deuteranopia (green-blind)
#B1A468
Tritanopia (blue-blind)
#B99A93
Achromatopsia (no color)
#A2A2A2
Design tokens & code
CSS
--color: #afa266; /* rgb */ color: rgb(175, 162, 102); /* oklch */ color: oklch(70.9% 0.081 97.4);
Tailwind
colors: {
custom: {
50: '#c8bd92',
500: '#afa266',
950: '#000000',
},
}SCSS
$custom: #afa266; $custom-light: #c8bd92; $custom-dark: #000000;
JSON
{
"hex": "#afa266",
"rgb": {
"r": 175,
"g": 162,
"b": 102
},
"hsl": {
"h": 49.315,
"s": 31.33,
"l": 54.314
},
"oklch": {
"l": 0.70945,
"c": 0.08095,
"h": 97.4
},
"luminance": 0.35914
}Semantic roles & 50–950 ramp
primary
#AFA266
secondary
#A9AEC8
accent
#73C860
background
#FCFBF9
surface
#F8F6F1
border
#D1D0CB
text
#13120D
muted
#82817E