#AFB166#AFB166
#AFB166 is a light, moderate yellow. Relative luminance 0.415; OKLCH L 74.2% C 0.098 H 109.9°. Best body text is #000000 at 9.30:1 contrast (WCAG AA passes).
Color values
| HEX | #AFB166 |
|---|---|
| RGB | rgb(175, 177, 102) |
| HSL | hsl(62, 32%, 55%) |
| HSV | hsv(62, 42%, 69%) |
| CMYK | cmyk(1.1%, 0%, 42.4%, 30.6%) |
| CIE-LAB | lab(70.54, -11.91, 38.04) |
| CIE-LCH | lch(70.54, 39.86, 107.39°) |
| OKLab | oklab(74.19% -0.0333 0.0919) |
| OKLCH | oklch(74.19% 0.098 109.9) |
| XYZ | xyz(35.8001, 41.5182, 18.6957) |
| Luminance | 0.4152 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Darkkhaki
#BDB76B
ΔE00 3.13
Khaki (survey)
#AAA662
ΔE00 3.45
Light Olive
#ACBF69
ΔE00 5.25
Tan Green
#A9BE70
ΔE00 5.54
Light Olive Green
#A4BE5C
ΔE00 6.58
Greenish Tan
#BCCB7A
ΔE00 7.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFB166 #6866B1
analogous
#B18E66 #AFB166 #8AB166
triadic
#AFB166 #66AFB1 #B166AF
tetradic
#AFB166 #66B18E #6866B1 #B1668A
square
#AFB166 #66B18E #6866B1 #B1668A
split-complementary
#AFB166 #668AB1 #8E66B1
monochromatic
#666835 #8E904A #AFB166 #C4C68F #D9DAB7
Accessibility & contrast
On white
2.26
#AFB166 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.30
#AFB166 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFB166
9.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFB166 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFB166 | 1.00 | 2.26 | 9.30 | 9.30 |
| #FFFFFF | 2.26 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.30 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.30 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BCAB60
Deuteranopia (green-blind)
#BCAE69
Tritanopia (blue-blind)
#B8A99F
Achromatopsia (no color)
#ACACAC
Design tokens & code
CSS
--color: #afb166; /* rgb */ color: rgb(175, 177, 102); /* oklch */ color: oklch(74.2% 0.098 109.9);
Tailwind
colors: {
custom: {
50: '#c8c893',
500: '#afb166',
950: '#000000',
},
}SCSS
$custom: #afb166; $custom-light: #c8c893; $custom-dark: #000000;
JSON
{
"hex": "#afb166",
"rgb": {
"r": 175,
"g": 177,
"b": 102
},
"hsl": {
"h": 61.6,
"s": 32.468,
"l": 54.706
},
"oklch": {
"l": 0.74185,
"c": 0.09777,
"h": 109.9
},
"luminance": 0.41518
}Semantic roles & 50–950 ramp
primary
#AFB166
secondary
#AAAAC9
accent
#5FC962
background
#FCFCF9
surface
#F8F8F1
border
#D1D1CB
text
#13130D
muted
#82827E