#8A791B#8A791B
#8A791B is a mid, moderate yellow. Relative luminance 0.192; OKLCH L 57.5% C 0.110 H 98.3°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).
Color values
| HEX | #8A791B |
|---|---|
| RGB | rgb(138, 121, 27) |
| HSL | hsl(51, 67%, 32%) |
| HSV | hsv(51, 80%, 54%) |
| CMYK | cmyk(0%, 12.3%, 80.4%, 45.9%) |
| CIE-LAB | lab(50.87, -3.70, 49.87) |
| CIE-LCH | lch(50.87, 50.01, 94.24°) |
| OKLab | oklab(57.53% -0.0158 0.1085) |
| OKLCH | oklch(57.53% 0.11 98.3) |
| XYZ | xyz(17.5173, 19.1581, 3.8119) |
| Luminance | 0.1916 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Hazel
#8E7618
ΔE00 2.41
Baby Poop
#937C00
ΔE00 3.23
Ugly Brown
#7D7103
ΔE00 3.99
Poo
#8F7303
ΔE00 4.03
Puke Brown
#947706
ΔE00 4.04
Yellowish Brown
#9B7A01
ΔE00 5.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A791B #1B2C8A
analogous
#8A421B #8A791B #638A1B
triadic
#8A791B #1B8A79 #791B8A
tetradic
#8A791B #1B8A42 #1B2C8A #8A1B63
square
#8A791B #1B8A42 #1B2C8A #8A1B63
split-complementary
#8A791B #1B638A #421B8A
monochromatic
#241F07 #574C11 #8A791B #BDA625 #DBC445
Accessibility & contrast
On white
4.35
#8A791B on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.83
#8A791B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A791B
4.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A791B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A791B | 1.00 | 4.35 | 4.83 | 4.83 |
| #FFFFFF | 4.35 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.83 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.83 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#867604
Deuteranopia (green-blind)
#8A7C22
Tritanopia (blue-blind)
#956F67
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #8a791b; /* rgb */ color: rgb(138, 121, 27); /* oklch */ color: oklch(57.5% 0.110 98.3);
Tailwind
colors: {
custom: {
50: '#b09f60',
500: '#8a791b',
950: '#000000',
},
}SCSS
$custom: #8a791b; $custom-light: #b09f60; $custom-dark: #000000;
JSON
{
"hex": "#8a791b",
"rgb": {
"r": 138,
"g": 121,
"b": 27
},
"hsl": {
"h": 50.811,
"s": 67.273,
"l": 32.353
},
"oklch": {
"l": 0.57525,
"c": 0.10962,
"h": 98.3
},
"luminance": 0.19157
}Semantic roles & 50–950 ramp
primary
#8A791B
secondary
#4557BC
accent
#58EA3E
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#110E05
muted
#807E79