#8D791B#8D791B
#8D791B is a mid, moderate yellow. Relative luminance 0.194; OKLCH L 57.8% C 0.110 H 96.3°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).
Color values
| HEX | #8D791B |
|---|---|
| RGB | rgb(141, 121, 27) |
| HSL | hsl(49, 68%, 33%) |
| HSV | hsv(49, 81%, 55%) |
| CMYK | cmyk(0%, 14.2%, 80.9%, 44.7%) |
| CIE-LAB | lab(51.17, -2.29, 50.25) |
| CIE-LCH | lch(51.17, 50.30, 92.61°) |
| OKLab | oklab(57.83% -0.012 0.1091) |
| OKLCH | oklch(57.83% 0.11 96.3) |
| XYZ | xyz(18.0207, 19.4176, 3.8355) |
| Luminance | 0.1942 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Hazel
#8E7618
ΔE00 1.59
Baby Poop
#937C00
ΔE00 2.66
Puke Brown
#947706
ΔE00 3.12
Poo
#8F7303
ΔE00 3.29
Yellowish Brown
#9B7A01
ΔE00 4.58
Ugly Brown
#7D7103
ΔE00 4.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8D791B #1B2F8D
analogous
#8D401B #8D791B #688D1B
triadic
#8D791B #1B8D79 #791B8D
tetradic
#8D791B #1B8D40 #1B2F8D #8D1B68
square
#8D791B #1B8D40 #1B2F8D #8D1B68
split-complementary
#8D791B #1B688D #401B8D
monochromatic
#262107 #5A4D11 #8D791B #C0A525 #DCC247
Accessibility & contrast
On white
4.30
#8D791B on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.88
#8D791B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8D791B
4.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8D791B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8D791B | 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)
#867604
Deuteranopia (green-blind)
#8B7D22
Tritanopia (blue-blind)
#996F67
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #8d791b; /* rgb */ color: rgb(141, 121, 27); /* oklch */ color: oklch(57.8% 0.110 96.3);
Tailwind
colors: {
custom: {
50: '#b29f60',
500: '#8d791b',
950: '#000000',
},
}SCSS
$custom: #8d791b; $custom-light: #b29f60; $custom-dark: #000000;
JSON
{
"hex": "#8d791b",
"rgb": {
"r": 141,
"g": 121,
"b": 27
},
"hsl": {
"h": 49.474,
"s": 67.857,
"l": 32.941
},
"oklch": {
"l": 0.57833,
"c": 0.1098,
"h": 96.3
},
"luminance": 0.19417
}Semantic roles & 50–950 ramp
primary
#8D791B
secondary
#465BBD
accent
#5CEB3D
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#110E05
muted
#807E79