#9B7F1F#9B7F1F
#9B7F1F is a mid, moderate yellow. Relative luminance 0.222; OKLCH L 60.6% C 0.114 H 91.5°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).
Color values
| HEX | #9B7F1F |
|---|---|
| RGB | rgb(155, 127, 31) |
| HSL | hsl(46, 67%, 36%) |
| HSV | hsv(46, 80%, 61%) |
| CMYK | cmyk(0%, 18.1%, 80%, 39.2%) |
| CIE-LAB | lab(54.29, 1.00, 52.22) |
| CIE-LCH | lch(54.29, 52.23, 88.90°) |
| OKLab | oklab(60.64% -0.003 0.1135) |
| OKLCH | oklch(60.64% 0.114 91.5) |
| XYZ | xyz(21.3555, 22.2476, 4.4655) |
| Luminance | 0.2225 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Yellowish Brown
#9B7A01
ΔE00 2.60
Diarrhea
#9F8303
ΔE00 2.74
Baby Poop
#937C00
ΔE00 3.00
Puke Brown
#947706
ΔE00 3.17
Hazel
#8E7618
ΔE00 3.92
Dark Mustard
#A88905
ΔE00 4.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9B7F1F #1F3B9B
analogous
#9B411F #9B7F1F #799B1F
triadic
#9B7F1F #1F9B7F #7F1F9B
tetradic
#9B7F1F #1F9B41 #1F3B9B #9B1F79
square
#9B7F1F #1F9B41 #1F3B9B #9B1F79
split-complementary
#9B7F1F #1F799B #411F9B
monochromatic
#352B0B #685515 #9B7F1F #CEA929 #DDBF57
Accessibility & contrast
On white
3.85
#9B7F1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.45
#9B7F1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9B7F1F
5.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9B7F1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9B7F1F | 1.00 | 3.85 | 5.45 | 5.45 |
| #FFFFFF | 3.85 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.45 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.45 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8E7D0A
Deuteranopia (green-blind)
#958525
Tritanopia (blue-blind)
#A8746D
Achromatopsia (no color)
#828282
Design tokens & code
CSS
--color: #9b7f1f; /* rgb */ color: rgb(155, 127, 31); /* oklch */ color: oklch(60.6% 0.114 91.5);
Tailwind
colors: {
custom: {
50: '#bda363',
500: '#9b7f1f',
950: '#000000',
},
}SCSS
$custom: #9b7f1f; $custom-light: #bda363; $custom-dark: #000000;
JSON
{
"hex": "#9b7f1f",
"rgb": {
"r": 155,
"g": 127,
"b": 31
},
"hsl": {
"h": 46.452,
"s": 66.667,
"l": 36.471
},
"oklch": {
"l": 0.60637,
"c": 0.11355,
"h": 91.5
},
"luminance": 0.22246
}Semantic roles & 50–950 ramp
primary
#9B7F1F
secondary
#556DC1
accent
#65EA3E
background
#FCFAF6
surface
#F8F3EB
border
#D1CDC6
text
#130F06
muted
#827F7A