#8A7A1F#8A7A1F
#8A7A1F is a mid, moderate yellow. Relative luminance 0.194; OKLCH L 57.8% C 0.108 H 98.8°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).
Color values
| HEX | #8A7A1F |
|---|---|
| RGB | rgb(138, 122, 31) |
| HSL | hsl(51, 63%, 33%) |
| HSV | hsv(51, 78%, 54%) |
| CMYK | cmyk(0%, 11.6%, 77.5%, 45.9%) |
| CIE-LAB | lab(51.18, -4.09, 48.72) |
| CIE-LCH | lch(51.18, 48.89, 94.80°) |
| OKLab | oklab(57.77% -0.0165 0.1069) |
| OKLCH | oklch(57.77% 0.108 98.8) |
| XYZ | xyz(17.6890, 19.4222, 4.1132) |
| Luminance | 0.1942 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Hazel
#8E7618
ΔE00 2.82
Baby Poop
#937C00
ΔE00 3.52
Ugly Brown
#7D7103
ΔE00 4.27
Puke Brown
#947706
ΔE00 4.46
Poo
#8F7303
ΔE00 4.53
Olive
#808000
ΔE00 5.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A7A1F #1F2F8A
analogous
#8A441F #8A7A1F #648A1F
triadic
#8A7A1F #1F8A7A #7A1F8A
tetradic
#8A7A1F #1F8A44 #1F2F8A #8A1F64
square
#8A7A1F #1F8A44 #1F2F8A #8A1F64
split-complementary
#8A7A1F #1F648A #441F8A
monochromatic
#262209 #584E14 #8A7A1F #BCA62A #D7C24C
Accessibility & contrast
On white
4.30
#8A7A1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.88
#8A7A1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A7A1F
4.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A7A1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A7A1F | 1.00 | 4.30 | 4.88 | 4.88 |
| #FFFFFF | 4.30 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.88 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.88 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#87770D
Deuteranopia (green-blind)
#8B7C25
Tritanopia (blue-blind)
#957069
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #8a7a1f; /* rgb */ color: rgb(138, 122, 31); /* oklch */ color: oklch(57.8% 0.108 98.8);
Tailwind
colors: {
custom: {
50: '#b0a062',
500: '#8a7a1f',
950: '#000000',
},
}SCSS
$custom: #8a7a1f; $custom-light: #b0a062; $custom-dark: #000000;
JSON
{
"hex": "#8a7a1f",
"rgb": {
"r": 138,
"g": 122,
"b": 31
},
"hsl": {
"h": 51.028,
"s": 63.314,
"l": 33.137
},
"oklch": {
"l": 0.57774,
"c": 0.10812,
"h": 98.8
},
"luminance": 0.19421
}Semantic roles & 50–950 ramp
primary
#8A7A1F
secondary
#4B5CBA
accent
#5AE641
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E05
muted
#807E7A