#8D791F#8D791F
#8D791F is a mid, moderate yellow. Relative luminance 0.194; OKLCH L 57.9% C 0.108 H 95.9°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).
Color values
| HEX | #8D791F |
|---|---|
| RGB | rgb(141, 121, 31) |
| HSL | hsl(49, 64%, 34%) |
| HSV | hsv(49, 78%, 55%) |
| CMYK | cmyk(0%, 14.2%, 78%, 44.7%) |
| CIE-LAB | lab(51.20, -2.13, 48.84) |
| CIE-LCH | lch(51.20, 48.89, 92.50°) |
| OKLab | oklab(57.86% -0.0111 0.107) |
| OKLCH | oklch(57.86% 0.108 95.9) |
| XYZ | xyz(18.0702, 19.4374, 4.0961) |
| Luminance | 0.1944 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Hazel
#8E7618
ΔE00 1.62
Baby Poop
#937C00
ΔE00 3.02
Puke Brown
#947706
ΔE00 3.30
Poo
#8F7303
ΔE00 3.45
Yellowish Brown
#9B7A01
ΔE00 4.73
Ugly Brown
#7D7103
ΔE00 4.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8D791F #1F338D
analogous
#8D421F #8D791F #6A8D1F
triadic
#8D791F #1F8D79 #791F8D
tetradic
#8D791F #1F8D42 #1F338D #8D1F6A
square
#8D791F #1F8D42 #1F338D #8D1F6A
split-complementary
#8D791F #1F6A8D #421F8D
monochromatic
#292309 #5B4E14 #8D791F #BFA42A #D8BF4E
Accessibility & contrast
On white
4.30
#8D791F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.89
#8D791F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8D791F
4.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8D791F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8D791F | 1.00 | 4.30 | 4.89 | 4.89 |
| #FFFFFF | 4.30 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.89 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.89 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#86760D
Deuteranopia (green-blind)
#8B7D25
Tritanopia (blue-blind)
#996F68
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #8d791f; /* rgb */ color: rgb(141, 121, 31); /* oklch */ color: oklch(57.9% 0.108 95.9);
Tailwind
colors: {
custom: {
50: '#b29f62',
500: '#8d791f',
950: '#000000',
},
}SCSS
$custom: #8d791f; $custom-light: #b29f62; $custom-dark: #000000;
JSON
{
"hex": "#8d791f",
"rgb": {
"r": 141,
"g": 121,
"b": 31
},
"hsl": {
"h": 49.091,
"s": 63.953,
"l": 33.725
},
"oklch": {
"l": 0.57859,
"c": 0.10755,
"h": 95.9
},
"luminance": 0.19436
}Semantic roles & 50–950 ramp
primary
#8D791F
secondary
#4D61BB
accent
#5FE741
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E05
muted
#807E7A