#AFA162#AFA162
#AFA162 is a light, moderate yellow. Relative luminance 0.355; OKLCH L 70.7% C 0.085 H 97.2°. Best body text is #000000 at 8.10:1 contrast (WCAG AA passes).
Color values
| HEX | #AFA162 |
|---|---|
| RGB | rgb(175, 161, 98) |
| HSL | hsl(49, 32%, 54%) |
| HSV | hsv(49, 44%, 69%) |
| CMYK | cmyk(0%, 8%, 44%, 31.4%) |
| CIE-LAB | lab(66.13, -3.89, 34.57) |
| CIE-LCH | lch(66.13, 34.79, 96.42°) |
| OKLab | oklab(70.67% -0.0105 0.0839) |
| OKLCH | oklch(70.67% 0.085 97.2) |
| XYZ | xyz(32.6295, 35.4867, 16.6837) |
| Luminance | 0.3549 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Khaki (survey)
#AAA662
ΔE00 3.46
Sandy Brown
#C4A661
ΔE00 5.59
Dark Khaki
#9B8F55
ΔE00 5.92
Sand
#C2B280
ΔE00 6.09
Dark Beige
#AC9362
ΔE00 6.40
Sandstone
#C9AE74
ΔE00 6.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFA162 #6270AF
analogous
#AF7A62 #AFA162 #96AF62
triadic
#AFA162 #62AFA1 #A162AF
tetradic
#AFA162 #62AF7A #6270AF #AF6296
square
#AFA162 #62AF7A #6270AF #AF6296
split-complementary
#AFA162 #6296AF #7A62AF
monochromatic
#645B33 #8C8047 #AFA162 #C4B98B #D8D2B3
Accessibility & contrast
On white
2.59
#AFA162 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.10
#AFA162 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFA162
8.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFA162 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFA162 | 1.00 | 2.59 | 8.10 | 8.10 |
| #FFFFFF | 2.59 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.10 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.10 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#AD9E5D
Deuteranopia (green-blind)
#B0A364
Tritanopia (blue-blind)
#BA9892
Achromatopsia (no color)
#A1A1A1
Design tokens & code
CSS
--color: #afa162; /* rgb */ color: rgb(175, 161, 98); /* oklch */ color: oklch(70.7% 0.085 97.2);
Tailwind
colors: {
custom: {
50: '#c8bc8f',
500: '#afa162',
950: '#000000',
},
}SCSS
$custom: #afa162; $custom-light: #c8bc8f; $custom-dark: #000000;
JSON
{
"hex": "#afa162",
"rgb": {
"r": 175,
"g": 161,
"b": 98
},
"hsl": {
"h": 49.091,
"s": 32.489,
"l": 53.529
},
"oklch": {
"l": 0.70666,
"c": 0.08455,
"h": 97.2
},
"luminance": 0.35486
}Semantic roles & 50–950 ramp
primary
#AFA162
secondary
#A6ACC7
accent
#72C95F
background
#FCFBF8
surface
#F8F6F0
border
#D1D0CB
text
#13120C
muted
#82817D