#817A1F#817A1F
#817A1F is a mid, moderate yellow. Relative luminance 0.187; OKLCH L 56.9% C 0.108 H 104.9°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).
Color values
| HEX | #817A1F |
|---|---|
| RGB | rgb(129, 122, 31) |
| HSL | hsl(56, 61%, 31%) |
| HSV | hsv(56, 76%, 51%) |
| CMYK | cmyk(0%, 5.4%, 76%, 49.4%) |
| CIE-LAB | lab(50.32, -8.28, 47.60) |
| CIE-LCH | lch(50.32, 48.31, 99.87°) |
| OKLab | oklab(56.89% -0.0278 0.1049) |
| OKLCH | oklch(56.89% 0.108 104.9) |
| XYZ | xyz(16.2608, 18.6858, 4.0462) |
| Luminance | 0.1868 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 3.71
Ugly Brown
#7D7103
ΔE00 3.90
Olive (survey)
#6E750E
ΔE00 5.19
Shit Green
#758000
ΔE00 5.53
Hazel
#8E7618
ΔE00 5.61
Brown Green
#706C11
ΔE00 5.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#817A1F #1F2681
analogous
#81491F #817A1F #57811F
triadic
#817A1F #1F817A #7A1F81
tetradic
#817A1F #1F8149 #1F2681 #811F57
square
#817A1F #1F8149 #1F2681 #811F57
split-complementary
#817A1F #1F5781 #491F81
monochromatic
#1E1D07 #504B13 #817A1F #B2A92B #D3C947
Accessibility & contrast
On white
4.43
#817A1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.74
#817A1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #817A1F
4.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##817A1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##817A1F | 1.00 | 4.43 | 4.74 | 4.74 |
| #FFFFFF | 4.43 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.74 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.74 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#85750D
Deuteranopia (green-blind)
#887A26
Tritanopia (blue-blind)
#8B7168
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #817a1f; /* rgb */ color: rgb(129, 122, 31); /* oklch */ color: oklch(56.9% 0.108 104.9);
Tailwind
colors: {
custom: {
50: '#a9a062',
500: '#817a1f',
950: '#000000',
},
}SCSS
$custom: #817a1f; $custom-light: #a9a062; $custom-dark: #000000;
JSON
{
"hex": "#817a1f",
"rgb": {
"r": 129,
"g": 122,
"b": 31
},
"hsl": {
"h": 55.714,
"s": 61.25,
"l": 31.373
},
"oklch": {
"l": 0.56887,
"c": 0.10849,
"h": 104.9
},
"luminance": 0.18685
}Semantic roles & 50–950 ramp
primary
#817A1F
secondary
#4850B4
accent
#4FE443
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A