#817B1F#817B1F
#817B1F is a mid, moderate yellow. Relative luminance 0.189; OKLCH L 57.1% C 0.109 H 105.6°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).
Color values
| HEX | #817B1F |
|---|---|
| RGB | rgb(129, 123, 31) |
| HSL | hsl(56, 61%, 31%) |
| HSV | hsv(56, 76%, 51%) |
| CMYK | cmyk(0%, 4.7%, 76%, 49.4%) |
| CIE-LAB | lab(50.61, -8.84, 47.88) |
| CIE-LCH | lch(50.61, 48.68, 100.46°) |
| OKLab | oklab(57.12% -0.0294 0.1054) |
| OKLCH | oklch(57.12% 0.109 105.6) |
| XYZ | xyz(16.3842, 18.9326, 4.0874) |
| Luminance | 0.1893 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 3.35
Ugly Brown
#7D7103
ΔE00 4.27
Olive (survey)
#6E750E
ΔE00 5.12
Shit Green
#758000
ΔE00 5.16
Poop Green
#6F7C00
ΔE00 5.64
Hazel
#8E7618
ΔE00 5.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#817B1F #1F2581
analogous
#814A1F #817B1F #56811F
triadic
#817B1F #1F817B #7B1F81
tetradic
#817B1F #1F814A #1F2581 #811F56
square
#817B1F #1F814A #1F2581 #811F56
split-complementary
#817B1F #1F5681 #4A1F81
monochromatic
#1E1D07 #504C13 #817B1F #B2AA2B #D3CA47
Accessibility & contrast
On white
4.39
#817B1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.79
#817B1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #817B1F
4.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##817B1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##817B1F | 1.00 | 4.39 | 4.79 | 4.79 |
| #FFFFFF | 4.39 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.79 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.79 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#86760D
Deuteranopia (green-blind)
#887A26
Tritanopia (blue-blind)
#8B7269
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #817b1f; /* rgb */ color: rgb(129, 123, 31); /* oklch */ color: oklch(57.1% 0.109 105.6);
Tailwind
colors: {
custom: {
50: '#a9a062',
500: '#817b1f',
950: '#000000',
},
}SCSS
$custom: #817b1f; $custom-light: #a9a062; $custom-dark: #000000;
JSON
{
"hex": "#817b1f",
"rgb": {
"r": 129,
"g": 123,
"b": 31
},
"hsl": {
"h": 56.327,
"s": 61.25,
"l": 31.373
},
"oklch": {
"l": 0.57118,
"c": 0.10946,
"h": 105.6
},
"luminance": 0.18932
}Semantic roles & 50–950 ramp
primary
#817B1F
secondary
#484FB4
accent
#4DE443
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A