#9B851F#9B851F
#9B851F is a mid, moderate yellow. Relative luminance 0.238; OKLCH L 61.9% C 0.117 H 96.1°. Best body text is #000000 at 5.77:1 contrast (WCAG AA passes).
Color values
| HEX | #9B851F |
|---|---|
| RGB | rgb(155, 133, 31) |
| HSL | hsl(49, 67%, 36%) |
| HSV | hsv(49, 80%, 61%) |
| CMYK | cmyk(0%, 14.2%, 80%, 39.2%) |
| CIE-LAB | lab(55.93, -2.34, 53.70) |
| CIE-LCH | lch(55.93, 53.76, 92.49°) |
| OKLab | oklab(61.93% -0.0125 0.1167) |
| OKLCH | oklch(61.93% 0.117 96.1) |
| XYZ | xyz(22.1536, 23.8438, 4.7315) |
| Luminance | 0.2384 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Diarrhea
#9F8303
ΔE00 2.43
Baby Poop
#937C00
ΔE00 3.50
Dark Mustard
#A88905
ΔE00 3.81
Yellowish Brown
#9B7A01
ΔE00 4.82
Baby Poo
#AB9004
ΔE00 5.00
Yellowy Brown
#AE8B0C
ΔE00 5.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9B851F #1F359B
analogous
#9B471F #9B851F #739B1F
triadic
#9B851F #1F9B85 #851F9B
tetradic
#9B851F #1F9B47 #1F359B #9B1F73
square
#9B851F #1F9B47 #1F359B #9B1F73
split-complementary
#9B851F #1F739B #471F9B
monochromatic
#352D0B #685915 #9B851F #CEB129 #DDC657
Accessibility & contrast
On white
3.64
#9B851F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.77
#9B851F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9B851F
5.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9B851F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9B851F | 1.00 | 3.64 | 5.77 | 5.77 |
| #FFFFFF | 3.64 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.77 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.77 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#948206
Deuteranopia (green-blind)
#998926
Tritanopia (blue-blind)
#A87A72
Achromatopsia (no color)
#868686
Design tokens & code
CSS
--color: #9b851f; /* rgb */ color: rgb(155, 133, 31); /* oklch */ color: oklch(61.9% 0.117 96.1);
Tailwind
colors: {
custom: {
50: '#bca864',
500: '#9b851f',
950: '#000000',
},
}SCSS
$custom: #9b851f; $custom-light: #bca864; $custom-dark: #000000;
JSON
{
"hex": "#9b851f",
"rgb": {
"r": 155,
"g": 133,
"b": 31
},
"hsl": {
"h": 49.355,
"s": 66.667,
"l": 36.471
},
"oklch": {
"l": 0.61935,
"c": 0.11737,
"h": 96.1
},
"luminance": 0.23843
}Semantic roles & 50–950 ramp
primary
#9B851F
secondary
#5568C1
accent
#5DEA3E
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A