#817D1F#817D1F
#817D1F is a mid, moderate yellow. Relative luminance 0.194; OKLCH L 57.6% C 0.111 H 106.9°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).
Color values
| HEX | #817D1F |
|---|---|
| RGB | rgb(129, 125, 31) |
| HSL | hsl(58, 61%, 31%) |
| HSV | hsv(58, 76%, 51%) |
| CMYK | cmyk(0%, 3.1%, 76%, 49.4%) |
| CIE-LAB | lab(51.19, -9.93, 48.43) |
| CIE-LCH | lch(51.19, 49.44, 101.59°) |
| OKLab | oklab(57.58% -0.0325 0.1066) |
| OKLCH | oklch(57.58% 0.111 106.9) |
| XYZ | xyz(16.6349, 19.4339, 4.1709) |
| Luminance | 0.1943 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 2.73
Shit Green
#758000
ΔE00 4.49
Ugly Brown
#7D7103
ΔE00 5.04
Olive (survey)
#6E750E
ΔE00 5.12
Poop Green
#6F7C00
ΔE00 5.18
Murky Green
#6C7A0E
ΔE00 5.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#817D1F #1F2381
analogous
#814C1F #817D1F #54811F
triadic
#817D1F #1F817D #7D1F81
tetradic
#817D1F #1F814C #1F2381 #811F54
square
#817D1F #1F814C #1F2381 #811F54
split-complementary
#817D1F #1F5481 #4C1F81
monochromatic
#1E1D07 #504D13 #817D1F #B2AD2B #D3CD47
Accessibility & contrast
On white
4.30
#817D1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.89
#817D1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #817D1F
4.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##817D1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##817D1F | 1.00 | 4.30 | 4.89 | 4.89 |
| #FFFFFF | 4.30 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.89 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.89 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#88780C
Deuteranopia (green-blind)
#8A7C26
Tritanopia (blue-blind)
#8B746B
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #817d1f; /* rgb */ color: rgb(129, 125, 31); /* oklch */ color: oklch(57.6% 0.111 106.9);
Tailwind
colors: {
custom: {
50: '#a9a262',
500: '#817d1f',
950: '#000000',
},
}SCSS
$custom: #817d1f; $custom-light: #a9a262; $custom-dark: #000000;
JSON
{
"hex": "#817d1f",
"rgb": {
"r": 129,
"g": 125,
"b": 31
},
"hsl": {
"h": 57.551,
"s": 61.25,
"l": 31.373
},
"oklch": {
"l": 0.57582,
"c": 0.11145,
"h": 106.9
},
"luminance": 0.19433
}Semantic roles & 50–950 ramp
primary
#817D1F
secondary
#484CB4
accent
#4AE443
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100F05
muted
#7F7E7A