#817A18#817A18
#817A18 is a mid, moderate yellow. Relative luminance 0.187; OKLCH L 56.8% C 0.112 H 105.1°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).
Color values
| HEX | #817A18 |
|---|---|
| RGB | rgb(129, 122, 24) |
| HSL | hsl(56, 69%, 30%) |
| HSV | hsv(56, 81%, 51%) |
| CMYK | cmyk(0%, 5.4%, 81.4%, 49.4%) |
| CIE-LAB | lab(50.28, -8.58, 50.01) |
| CIE-LCH | lch(50.28, 50.74, 99.74°) |
| OKLab | oklab(56.84% -0.0293 0.1086) |
| OKLCH | oklch(56.84% 0.112 105.1) |
| XYZ | xyz(16.1784, 18.6528, 3.6121) |
| Luminance | 0.1865 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 3.24
Ugly Brown
#7D7103
ΔE00 3.64
Olive (survey)
#6E750E
ΔE00 5.17
Shit Green
#758000
ΔE00 5.31
Hazel
#8E7618
ΔE00 5.58
Poop Green
#6F7C00
ΔE00 5.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#817A18 #181F81
analogous
#814618 #817A18 #538118
triadic
#817A18 #18817A #7A1881
tetradic
#817A18 #188146 #181F81 #811853
square
#817A18 #188146 #181F81 #811853
split-complementary
#817A18 #185381 #461881
monochromatic
#1A1805 #4D490E #817A18 #B5AB22 #DACF39
Accessibility & contrast
On white
4.44
#817A18 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.73
#817A18 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #817A18
4.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##817A18 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##817A18 | 1.00 | 4.44 | 4.73 | 4.73 |
| #FFFFFF | 4.44 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.73 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.73 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#857500
Deuteranopia (green-blind)
#887920
Tritanopia (blue-blind)
#8B7168
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #817a18; /* rgb */ color: rgb(129, 122, 24); /* oklch */ color: oklch(56.8% 0.112 105.1);
Tailwind
colors: {
custom: {
50: '#a9a05f',
500: '#817a18',
950: '#000000',
},
}SCSS
$custom: #817a18; $custom-light: #a9a05f; $custom-dark: #000000;
JSON
{
"hex": "#817a18",
"rgb": {
"r": 129,
"g": 122,
"b": 24
},
"hsl": {
"h": 56,
"s": 68.627,
"l": 30
},
"oklch": {
"l": 0.56843,
"c": 0.11248,
"h": 105.1
},
"luminance": 0.18652
}Semantic roles & 50–950 ramp
primary
#817A18
secondary
#4047B5
accent
#48EB3C
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79