#AFA962#AFA962
#AFA962 is a light, moderate yellow. Relative luminance 0.384; OKLCH L 72.4% C 0.093 H 104.2°. Best body text is #000000 at 8.67:1 contrast (WCAG AA passes).
Color values
| HEX | #AFA962 |
|---|---|
| RGB | rgb(175, 169, 98) |
| HSL | hsl(55, 32%, 54%) |
| HSV | hsv(55, 44%, 69%) |
| CMYK | cmyk(0%, 3.4%, 44%, 31.4%) |
| CIE-LAB | lab(68.29, -8.15, 37.29) |
| CIE-LCH | lch(68.29, 38.17, 102.33°) |
| OKLab | oklab(72.38% -0.0228 0.09) |
| OKLCH | oklch(72.38% 0.093 104.2) |
| XYZ | xyz(34.0725, 38.3727, 17.1647) |
| Luminance | 0.3837 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Khaki (survey)
#AAA662
ΔE00 1.28
Darkkhaki
#BDB76B
ΔE00 3.97
Sand
#C2B280
ΔE00 6.65
Sandy Brown
#C4A661
ΔE00 7.69
Sandstone
#C9AE74
ΔE00 8.04
Desert
#CCAD60
ΔE00 8.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFA962 #6268AF
analogous
#AF8262 #AFA962 #8EAF62
triadic
#AFA962 #62AFA9 #A962AF
tetradic
#AFA962 #62AF82 #6268AF #AF628E
square
#AFA962 #62AF82 #6268AF #AF628E
split-complementary
#AFA962 #628EAF #8262AF
monochromatic
#646033 #8C8747 #AFA962 #C4BF8B #D8D5B3
Accessibility & contrast
On white
2.42
#AFA962 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.67
#AFA962 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFA962
8.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFA962 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFA962 | 1.00 | 2.42 | 8.67 | 8.67 |
| #FFFFFF | 2.42 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.67 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.67 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B4A45C
Deuteranopia (green-blind)
#B7A865
Tritanopia (blue-blind)
#B9A098
Achromatopsia (no color)
#A6A6A6
Design tokens & code
CSS
--color: #afa962; /* rgb */ color: rgb(175, 169, 98); /* oklch */ color: oklch(72.4% 0.093 104.2);
Tailwind
colors: {
custom: {
50: '#c8c290',
500: '#afa962',
950: '#000000',
},
}SCSS
$custom: #afa962; $custom-light: #c8c290; $custom-dark: #000000;
JSON
{
"hex": "#afa962",
"rgb": {
"r": 175,
"g": 169,
"b": 98
},
"hsl": {
"h": 55.325,
"s": 32.489,
"l": 53.529
},
"oklch": {
"l": 0.72384,
"c": 0.09286,
"h": 104.2
},
"luminance": 0.38372
}Semantic roles & 50–950 ramp
primary
#AFA962
secondary
#A6A8C7
accent
#67C95F
background
#FCFBF8
surface
#F8F7F0
border
#D1D0CB
text
#13120C
muted
#82817D