#AFB162#AFB162
#AFB162 is a light, moderate yellow. Relative luminance 0.414; OKLCH L 74.1% C 0.102 H 109.9°. Best body text is #000000 at 9.29:1 contrast (WCAG AA passes).
Color values
| HEX | #AFB162 |
|---|---|
| RGB | rgb(175, 177, 98) |
| HSL | hsl(62, 34%, 54%) |
| HSV | hsv(62, 45%, 69%) |
| CMYK | cmyk(1.1%, 0%, 44.6%, 30.6%) |
| CIE-LAB | lab(70.48, -12.33, 40.01) |
| CIE-LCH | lch(70.48, 41.86, 107.13°) |
| OKLab | oklab(74.12% -0.0348 0.0961) |
| OKLCH | oklch(74.12% 0.102 109.9) |
| XYZ | xyz(35.6065, 41.4408, 17.6761) |
| Luminance | 0.4144 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Darkkhaki
#BDB76B
ΔE00 3.15
Khaki (survey)
#AAA662
ΔE00 3.67
Light Olive
#ACBF69
ΔE00 5.20
Tan Green
#A9BE70
ΔE00 5.68
Light Olive Green
#A4BE5C
ΔE00 6.37
Greenish Tan
#BCCB7A
ΔE00 7.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFB162 #6462B1
analogous
#B18C62 #AFB162 #88B162
triadic
#AFB162 #62AFB1 #B162AF
tetradic
#AFB162 #62B18C #6462B1 #B16288
square
#AFB162 #62B18C #6462B1 #B16288
split-complementary
#AFB162 #6288B1 #8C62B1
monochromatic
#656633 #8D8F47 #AFB162 #C4C58B #D9DAB4
Accessibility & contrast
On white
2.26
#AFB162 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.29
#AFB162 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFB162
9.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFB162 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFB162 | 1.00 | 2.26 | 9.29 | 9.29 |
| #FFFFFF | 2.26 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.29 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.29 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BCAB5B
Deuteranopia (green-blind)
#BDAE66
Tritanopia (blue-blind)
#B9A89E
Achromatopsia (no color)
#ACACAC
Design tokens & code
CSS
--color: #afb162; /* rgb */ color: rgb(175, 177, 98); /* oklch */ color: oklch(74.1% 0.102 109.9);
Tailwind
colors: {
custom: {
50: '#c8c890',
500: '#afb162',
950: '#000000',
},
}SCSS
$custom: #afb162; $custom-light: #c8c890; $custom-dark: #000000;
JSON
{
"hex": "#afb162",
"rgb": {
"r": 175,
"g": 177,
"b": 98
},
"hsl": {
"h": 61.519,
"s": 33.617,
"l": 53.922
},
"oklch": {
"l": 0.74124,
"c": 0.10219,
"h": 109.9
},
"luminance": 0.4144
}Semantic roles & 50–950 ramp
primary
#AFB162
secondary
#A7A7C8
accent
#5ECA61
background
#FCFCF8
surface
#F8F8F0
border
#D1D1CB
text
#13130D
muted
#82827D