#8A7C1F#8A7C1F
#8A7C1F is a mid, moderate yellow. Relative luminance 0.199; OKLCH L 58.2% C 0.110 H 100.3°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).
Color values
| HEX | #8A7C1F |
|---|---|
| RGB | rgb(138, 124, 31) |
| HSL | hsl(52, 63%, 33%) |
| HSV | hsv(52, 78%, 54%) |
| CMYK | cmyk(0%, 10.1%, 77.5%, 45.9%) |
| CIE-LAB | lab(51.74, -5.21, 49.25) |
| CIE-LCH | lch(51.74, 49.52, 96.04°) |
| OKLab | oklab(58.22% -0.0197 0.108) |
| OKLCH | oklch(58.22% 0.11 100.3) |
| XYZ | xyz(17.9371, 19.9184, 4.1959) |
| Luminance | 0.1992 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Hazel
#8E7618
ΔE00 3.66
Baby Poop
#937C00
ΔE00 3.69
Ugly Brown
#7D7103
ΔE00 4.65
Olive
#808000
ΔE00 4.77
Puke Brown
#947706
ΔE00 5.09
Poo
#8F7303
ΔE00 5.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A7C1F #1F2D8A
analogous
#8A471F #8A7C1F #628A1F
triadic
#8A7C1F #1F8A7C #7C1F8A
tetradic
#8A7C1F #1F8A47 #1F2D8A #8A1F62
square
#8A7C1F #1F8A47 #1F2D8A #8A1F62
split-complementary
#8A7C1F #1F628A #471F8A
monochromatic
#262209 #584F14 #8A7C1F #BCA92A #D7C54C
Accessibility & contrast
On white
4.21
#8A7C1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.98
#8A7C1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A7C1F
4.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A7C1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A7C1F | 1.00 | 4.21 | 4.98 | 4.98 |
| #FFFFFF | 4.21 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.98 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.98 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#88780C
Deuteranopia (green-blind)
#8C7E25
Tritanopia (blue-blind)
#95726A
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #8a7c1f; /* rgb */ color: rgb(138, 124, 31); /* oklch */ color: oklch(58.2% 0.110 100.3);
Tailwind
colors: {
custom: {
50: '#b0a162',
500: '#8a7c1f',
950: '#000000',
},
}SCSS
$custom: #8a7c1f; $custom-light: #b0a162; $custom-dark: #000000;
JSON
{
"hex": "#8a7c1f",
"rgb": {
"r": 138,
"g": 124,
"b": 31
},
"hsl": {
"h": 52.15,
"s": 63.314,
"l": 33.137
},
"oklch": {
"l": 0.58224,
"c": 0.10976,
"h": 100.3
},
"luminance": 0.19918
}Semantic roles & 50–950 ramp
primary
#8A7C1F
secondary
#4B5ABA
accent
#57E641
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E05
muted
#807E7A