#817F18#817F18
#817F18 is a mid, moderate yellow. Relative luminance 0.199; OKLCH L 58.0% C 0.117 H 108.4°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).
Color values
| HEX | #817F18 |
|---|---|
| RGB | rgb(129, 127, 24) |
| HSL | hsl(59, 69%, 30%) |
| HSV | hsv(59, 81%, 51%) |
| CMYK | cmyk(0%, 1.6%, 81.4%, 49.4%) |
| CIE-LAB | lab(51.74, -11.32, 51.30) |
| CIE-LCH | lch(51.74, 52.54, 102.45°) |
| OKLab | oklab(58.01% -0.037 0.1114) |
| OKLCH | oklch(58.01% 0.117 108.4) |
| XYZ | xyz(16.8082, 19.9124, 3.8221) |
| Luminance | 0.1991 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 1.63
Shit Green
#758000
ΔE00 3.70
Poop Green
#6F7C00
ΔE00 4.73
Swamp Green
#748500
ΔE00 5.16
Olive (survey)
#6E750E
ΔE00 5.32
Murky Green
#6C7A0E
ΔE00 5.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#817F18 #181A81
analogous
#814A18 #817F18 #4F8118
triadic
#817F18 #18817F #7F1881
tetradic
#817F18 #18814A #181A81 #81184F
square
#817F18 #18814A #181A81 #81184F
split-complementary
#817F18 #184F81 #4A1881
monochromatic
#1A1905 #4D4C0E #817F18 #B5B222 #DAD739
Accessibility & contrast
On white
4.21
#817F18 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.98
#817F18 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #817F18
4.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##817F18 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##817F18 | 1.00 | 4.21 | 4.98 | 4.98 |
| #FFFFFF | 4.21 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.98 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.98 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8A7A00
Deuteranopia (green-blind)
#8C7D21
Tritanopia (blue-blind)
#8B766C
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #817f18; /* rgb */ color: rgb(129, 127, 24); /* oklch */ color: oklch(58.0% 0.117 108.4);
Tailwind
colors: {
custom: {
50: '#a9a35f',
500: '#817f18',
950: '#000000',
},
}SCSS
$custom: #817f18; $custom-light: #a9a35f; $custom-dark: #000000;
JSON
{
"hex": "#817f18",
"rgb": {
"r": 129,
"g": 127,
"b": 24
},
"hsl": {
"h": 58.857,
"s": 68.627,
"l": 30
},
"oklch": {
"l": 0.58007,
"c": 0.11735,
"h": 108.4
},
"luminance": 0.19912
}Semantic roles & 50–950 ramp
primary
#817F18
secondary
#4042B5
accent
#40EB3C
background
#FAFAF5
surface
#F4F3EA
border
#CECDC6
text
#100F05
muted
#7F7F79