#9B7C1F#9B7C1F
#9B7C1F is a mid, moderate yellow. Relative luminance 0.215; OKLCH L 60.0% C 0.112 H 89.1°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).
Color values
| HEX | #9B7C1F |
|---|---|
| RGB | rgb(155, 124, 31) |
| HSL | hsl(45, 67%, 36%) |
| HSV | hsv(45, 80%, 61%) |
| CMYK | cmyk(0%, 20%, 80%, 39.2%) |
| CIE-LAB | lab(53.48, 2.68, 51.48) |
| CIE-LCH | lch(53.48, 51.55, 87.02°) |
| OKLab | oklab(60% 0.0018 0.1119) |
| OKLCH | oklch(60% 0.112 89.1) |
| XYZ | xyz(20.9738, 21.4842, 4.3382) |
| Luminance | 0.2148 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Yellowish Brown
#9B7A01
ΔE00 2.09
Puke Brown
#947706
ΔE00 2.67
Hazel
#8E7618
ΔE00 3.62
Baby Poop
#937C00
ΔE00 3.67
Diarrhea
#9F8303
ΔE00 3.80
Poo
#8F7303
ΔE00 4.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9B7C1F #1F3E9B
analogous
#9B3E1F #9B7C1F #7C9B1F
triadic
#9B7C1F #1F9B7C #7C1F9B
tetradic
#9B7C1F #1F9B3E #1F3E9B #9B1F7C
square
#9B7C1F #1F9B3E #1F3E9B #9B1F7C
split-complementary
#9B7C1F #1F7C9B #3E1F9B
monochromatic
#352A0B #685315 #9B7C1F #CEA529 #DDBC57
Accessibility & contrast
On white
3.96
#9B7C1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.30
#9B7C1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9B7C1F
5.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9B7C1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9B7C1F | 1.00 | 3.96 | 5.30 | 5.30 |
| #FFFFFF | 3.96 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.30 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.30 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8B7B0B
Deuteranopia (green-blind)
#938324
Tritanopia (blue-blind)
#A8716A
Achromatopsia (no color)
#808080
Design tokens & code
CSS
--color: #9b7c1f; /* rgb */ color: rgb(155, 124, 31); /* oklch */ color: oklch(60.0% 0.112 89.1);
Tailwind
colors: {
custom: {
50: '#bda163',
500: '#9b7c1f',
950: '#000000',
},
}SCSS
$custom: #9b7c1f; $custom-light: #bda163; $custom-dark: #000000;
JSON
{
"hex": "#9b7c1f",
"rgb": {
"r": 155,
"g": 124,
"b": 31
},
"hsl": {
"h": 45,
"s": 66.667,
"l": 36.471
},
"oklch": {
"l": 0.59996,
"c": 0.11192,
"h": 89.1
},
"luminance": 0.21483
}Semantic roles & 50–950 ramp
primary
#9B7C1F
secondary
#5570C1
accent
#69EA3E
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#130E06
muted
#827E7A