#9B811F#9B811F
#9B811F is a mid, moderate yellow. Relative luminance 0.228; OKLCH L 61.1% C 0.115 H 93.1°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).
Color values
| HEX | #9B811F |
|---|---|
| RGB | rgb(155, 129, 31) |
| HSL | hsl(47, 67%, 36%) |
| HSV | hsv(47, 80%, 61%) |
| CMYK | cmyk(0%, 16.8%, 80%, 39.2%) |
| CIE-LAB | lab(54.83, -0.12, 52.71) |
| CIE-LCH | lch(54.83, 52.71, 90.13°) |
| OKLab | oklab(61.07% -0.0062 0.1146) |
| OKLCH | oklch(61.07% 0.115 93.1) |
| XYZ | xyz(21.6164, 22.7693, 4.5524) |
| Luminance | 0.2277 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Diarrhea
#9F8303
ΔE00 2.28
Baby Poop
#937C00
ΔE00 2.89
Yellowish Brown
#9B7A01
ΔE00 3.25
Puke Brown
#947706
ΔE00 3.77
Dark Mustard
#A88905
ΔE00 4.16
Hazel
#8E7618
ΔE00 4.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9B811F #1F399B
analogous
#9B431F #9B811F #779B1F
triadic
#9B811F #1F9B81 #811F9B
tetradic
#9B811F #1F9B43 #1F399B #9B1F77
square
#9B811F #1F9B43 #1F399B #9B1F77
split-complementary
#9B811F #1F779B #431F9B
monochromatic
#352C0B #685715 #9B811F #CEAB29 #DDC157
Accessibility & contrast
On white
3.78
#9B811F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.55
#9B811F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9B811F
5.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9B811F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9B811F | 1.00 | 3.78 | 5.55 | 5.55 |
| #FFFFFF | 3.78 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.55 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.55 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#907F08
Deuteranopia (green-blind)
#968625
Tritanopia (blue-blind)
#A8766F
Achromatopsia (no color)
#838383
Design tokens & code
CSS
--color: #9b811f; /* rgb */ color: rgb(155, 129, 31); /* oklch */ color: oklch(61.1% 0.115 93.1);
Tailwind
colors: {
custom: {
50: '#bda563',
500: '#9b811f',
950: '#000000',
},
}SCSS
$custom: #9b811f; $custom-light: #bda563; $custom-dark: #000000;
JSON
{
"hex": "#9b811f",
"rgb": {
"r": 155,
"g": 129,
"b": 31
},
"hsl": {
"h": 47.419,
"s": 66.667,
"l": 36.471
},
"oklch": {
"l": 0.61067,
"c": 0.11474,
"h": 93.1
},
"luminance": 0.22768
}Semantic roles & 50–950 ramp
primary
#9B811F
secondary
#556BC1
accent
#62EA3E
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A