#9B841F#9B841F
#9B841F is a mid, moderate yellow. Relative luminance 0.236; OKLCH L 61.7% C 0.117 H 95.4°. Best body text is #000000 at 5.71:1 contrast (WCAG AA passes).
Color values
| HEX | #9B841F |
|---|---|
| RGB | rgb(155, 132, 31) |
| HSL | hsl(49, 67%, 36%) |
| HSV | hsv(49, 80%, 61%) |
| CMYK | cmyk(0%, 14.8%, 80%, 39.2%) |
| CIE-LAB | lab(55.66, -1.79, 53.46) |
| CIE-LCH | lch(55.66, 53.49, 91.91°) |
| OKLab | oklab(61.72% -0.0109 0.1162) |
| OKLCH | oklch(61.72% 0.117 95.4) |
| XYZ | xyz(22.0174, 23.5713, 4.6861) |
| Luminance | 0.2357 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Diarrhea
#9F8303
ΔE00 2.25
Baby Poop
#937C00
ΔE00 3.27
Dark Mustard
#A88905
ΔE00 3.82
Yellowish Brown
#9B7A01
ΔE00 4.41
Puke Brown
#947706
ΔE00 4.86
Yellowy Brown
#AE8B0C
ΔE00 5.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9B841F #1F369B
analogous
#9B461F #9B841F #749B1F
triadic
#9B841F #1F9B84 #841F9B
tetradic
#9B841F #1F9B46 #1F369B #9B1F74
square
#9B841F #1F9B46 #1F369B #9B1F74
split-complementary
#9B841F #1F749B #461F9B
monochromatic
#352D0B #685915 #9B841F #CEAF29 #DDC457
Accessibility & contrast
On white
3.68
#9B841F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.71
#9B841F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9B841F
5.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9B841F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9B841F | 1.00 | 3.68 | 5.71 | 5.71 |
| #FFFFFF | 3.68 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.71 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.71 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#938107
Deuteranopia (green-blind)
#988826
Tritanopia (blue-blind)
#A87971
Achromatopsia (no color)
#858585
Design tokens & code
CSS
--color: #9b841f; /* rgb */ color: rgb(155, 132, 31); /* oklch */ color: oklch(61.7% 0.117 95.4);
Tailwind
colors: {
custom: {
50: '#bca764',
500: '#9b841f',
950: '#000000',
},
}SCSS
$custom: #9b841f; $custom-light: #bca764; $custom-dark: #000000;
JSON
{
"hex": "#9b841f",
"rgb": {
"r": 155,
"g": 132,
"b": 31
},
"hsl": {
"h": 48.871,
"s": 66.667,
"l": 36.471
},
"oklch": {
"l": 0.61717,
"c": 0.11668,
"h": 95.4
},
"luminance": 0.2357
}Semantic roles & 50–950 ramp
primary
#9B841F
secondary
#5569C1
accent
#5EEA3E
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A