#9B871F#9B871F
#9B871F is a light, moderate yellow. Relative luminance 0.244; OKLCH L 62.4% C 0.119 H 97.6°. Best body text is #000000 at 5.88:1 contrast (WCAG AA passes).
Color values
| HEX | #9B871F |
|---|---|
| RGB | rgb(155, 135, 31) |
| HSL | hsl(50, 67%, 36%) |
| HSV | hsv(50, 80%, 61%) |
| CMYK | cmyk(0%, 12.9%, 80%, 39.2%) |
| CIE-LAB | lab(56.48, -3.44, 54.20) |
| CIE-LCH | lch(56.48, 54.31, 93.63°) |
| OKLab | oklab(62.37% -0.0156 0.1178) |
| OKLCH | oklch(62.37% 0.119 97.6) |
| XYZ | xyz(22.4300, 24.3966, 4.8236) |
| Luminance | 0.2440 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Diarrhea
#9F8303
ΔE00 2.95
Dark Mustard
#A88905
ΔE00 3.96
Baby Poop
#937C00
ΔE00 4.09
Baby Poo
#AB9004
ΔE00 4.67
Baby Shit Brown
#AD900D
ΔE00 4.88
Yellowy Brown
#AE8B0C
ΔE00 5.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9B871F #1F339B
analogous
#9B491F #9B871F #719B1F
triadic
#9B871F #1F9B87 #871F9B
tetradic
#9B871F #1F9B49 #1F339B #9B1F71
square
#9B871F #1F9B49 #1F339B #9B1F71
split-complementary
#9B871F #1F719B #491F9B
monochromatic
#352E0B #685B15 #9B871F #CEB329 #DDC857
Accessibility & contrast
On white
3.57
#9B871F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.88
#9B871F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9B871F
5.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9B871F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9B871F | 1.00 | 3.57 | 5.88 | 5.88 |
| #FFFFFF | 3.57 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.88 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.88 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#958405
Deuteranopia (green-blind)
#9B8A26
Tritanopia (blue-blind)
#A87C74
Achromatopsia (no color)
#878787
Design tokens & code
CSS
--color: #9b871f; /* rgb */ color: rgb(155, 135, 31); /* oklch */ color: oklch(62.4% 0.119 97.6);
Tailwind
colors: {
custom: {
50: '#bca964',
500: '#9b871f',
950: '#000000',
},
}SCSS
$custom: #9b871f; $custom-light: #bca964; $custom-dark: #000000;
JSON
{
"hex": "#9b871f",
"rgb": {
"r": 155,
"g": 135,
"b": 31
},
"hsl": {
"h": 50.323,
"s": 66.667,
"l": 36.471
},
"oklch": {
"l": 0.62371,
"c": 0.1188,
"h": 97.6
},
"luminance": 0.24395
}Semantic roles & 50–950 ramp
primary
#9B871F
secondary
#5566C1
accent
#5AEA3E
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A