#8A771B#8A771B
#8A771B is a mid, moderate yellow. Relative luminance 0.187; OKLCH L 57.1% C 0.108 H 96.7°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).
Color values
| HEX | #8A771B |
|---|---|
| RGB | rgb(138, 119, 27) |
| HSL | hsl(50, 67%, 32%) |
| HSV | hsv(50, 80%, 54%) |
| CMYK | cmyk(0%, 13.8%, 80.4%, 45.9%) |
| CIE-LAB | lab(50.31, -2.57, 49.36) |
| CIE-LCH | lch(50.31, 49.42, 92.98°) |
| OKLab | oklab(57.08% -0.0126 0.1074) |
| OKLCH | oklch(57.08% 0.108 96.7) |
| XYZ | xyz(17.2768, 18.6770, 3.7317) |
| Luminance | 0.1868 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Hazel
#8E7618
ΔE00 1.66
Poo
#8F7303
ΔE00 3.30
Baby Poop
#937C00
ΔE00 3.43
Puke Brown
#947706
ΔE00 3.57
Ugly Brown
#7D7103
ΔE00 3.88
Yellowish Brown
#9B7A01
ΔE00 5.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A771B #1B2E8A
analogous
#8A401B #8A771B #658A1B
triadic
#8A771B #1B8A77 #771B8A
tetradic
#8A771B #1B8A40 #1B2E8A #8A1B65
square
#8A771B #1B8A40 #1B2E8A #8A1B65
split-complementary
#8A771B #1B658A #401B8A
monochromatic
#241F07 #574B11 #8A771B #BDA325 #DBC145
Accessibility & contrast
On white
4.43
#8A771B on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.74
#8A771B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A771B
4.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A771B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A771B | 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)
#847405
Deuteranopia (green-blind)
#897A21
Tritanopia (blue-blind)
#966D66
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #8a771b; /* rgb */ color: rgb(138, 119, 27); /* oklch */ color: oklch(57.1% 0.108 96.7);
Tailwind
colors: {
custom: {
50: '#b09d60',
500: '#8a771b',
950: '#000000',
},
}SCSS
$custom: #8a771b; $custom-light: #b09d60; $custom-dark: #000000;
JSON
{
"hex": "#8a771b",
"rgb": {
"r": 138,
"g": 119,
"b": 27
},
"hsl": {
"h": 49.73,
"s": 67.273,
"l": 32.353
},
"oklch": {
"l": 0.57078,
"c": 0.10811,
"h": 96.7
},
"luminance": 0.18676
}Semantic roles & 50–950 ramp
primary
#8A771B
secondary
#4559BC
accent
#5BEA3E
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#110E05
muted
#807E79