#877F1F#877F1F
#877F1F is a mid, moderate yellow. Relative luminance 0.204; OKLCH L 58.6% C 0.113 H 104.5°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).
Color values
| HEX | #877F1F |
|---|---|
| RGB | rgb(135, 127, 31) |
| HSL | hsl(55, 63%, 33%) |
| HSV | hsv(55, 77%, 53%) |
| CMYK | cmyk(0%, 5.9%, 77%, 47.1%) |
| CIE-LAB | lab(52.32, -8.26, 49.68) |
| CIE-LCH | lch(52.32, 50.36, 99.44°) |
| OKLab | oklab(58.61% -0.0281 0.109) |
| OKLCH | oklch(58.61% 0.113 104.5) |
| XYZ | xyz(17.8291, 20.4293, 4.3002) |
| Luminance | 0.2043 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 3.06
Baby Poop
#937C00
ΔE00 5.19
Ugly Brown
#7D7103
ΔE00 5.44
Shit Green
#758000
ΔE00 5.63
Hazel
#8E7618
ΔE00 5.71
Drab
#828344
ΔE00 6.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#877F1F #1F2787
analogous
#874B1F #877F1F #5B871F
triadic
#877F1F #1F877F #7F1F87
tetradic
#877F1F #1F874B #1F2787 #871F5B
square
#877F1F #1F874B #1F2787 #871F5B
split-complementary
#877F1F #1F5B87 #4B1F87
monochromatic
#232108 #555014 #877F1F #B9AE2A #D6CB4B
Accessibility & contrast
On white
4.13
#877F1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.09
#877F1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #877F1F
5.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##877F1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##877F1F | 1.00 | 4.13 | 5.09 | 5.09 |
| #FFFFFF | 4.13 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.09 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.09 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8B7A0B
Deuteranopia (green-blind)
#8E7F26
Tritanopia (blue-blind)
#92766D
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #877f1f; /* rgb */ color: rgb(135, 127, 31); /* oklch */ color: oklch(58.6% 0.113 104.5);
Tailwind
colors: {
custom: {
50: '#ada363',
500: '#877f1f',
950: '#000000',
},
}SCSS
$custom: #877f1f; $custom-light: #ada363; $custom-dark: #000000;
JSON
{
"hex": "#877f1f",
"rgb": {
"r": 135,
"g": 127,
"b": 31
},
"hsl": {
"h": 55.385,
"s": 62.651,
"l": 32.549
},
"oklch": {
"l": 0.58613,
"c": 0.1126,
"h": 104.5
},
"luminance": 0.20429
}Semantic roles & 50–950 ramp
primary
#877F1F
secondary
#4A52B8
accent
#4FE642
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F06
muted
#807F7A