#9B7F22#9B7F22
#9B7F22 is a mid, moderate yellow. Relative luminance 0.223; OKLCH L 60.7% C 0.112 H 91.2°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).
Color values
| HEX | #9B7F22 |
|---|---|
| RGB | rgb(155, 127, 34) |
| HSL | hsl(46, 64%, 37%) |
| HSV | hsv(46, 78%, 61%) |
| CMYK | cmyk(0%, 18.1%, 78.1%, 39.2%) |
| CIE-LAB | lab(54.31, 1.12, 51.14) |
| CIE-LCH | lch(54.31, 51.15, 88.75°) |
| OKLab | oklab(60.66% -0.0024 0.1119) |
| OKLCH | oklch(60.66% 0.112 91.2) |
| XYZ | xyz(21.3969, 22.2641, 4.6835) |
| Luminance | 0.2226 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Yellowish Brown
#9B7A01
ΔE00 2.79
Diarrhea
#9F8303
ΔE00 3.03
Baby Poop
#937C00
ΔE00 3.25
Puke Brown
#947706
ΔE00 3.30
Hazel
#8E7618
ΔE00 3.93
Poo
#8F7303
ΔE00 4.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9B7F22 #223E9B
analogous
#9B4322 #9B7F22 #7A9B22
triadic
#9B7F22 #229B7F #7F229B
tetradic
#9B7F22 #229B43 #223E9B #9B227A
square
#9B7F22 #229B43 #223E9B #9B227A
split-complementary
#9B7F22 #227A9B #43229B
monochromatic
#372D0C #695617 #9B7F22 #CDA82D #DBBE5C
Accessibility & contrast
On white
3.85
#9B7F22 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.45
#9B7F22 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9B7F22
5.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9B7F22 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9B7F22 | 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)
#8E7D10
Deuteranopia (green-blind)
#958527
Tritanopia (blue-blind)
#A8746D
Achromatopsia (no color)
#828282
Design tokens & code
CSS
--color: #9b7f22; /* rgb */ color: rgb(155, 127, 34); /* oklch */ color: oklch(60.7% 0.112 91.2);
Tailwind
colors: {
custom: {
50: '#bca365',
500: '#9b7f22',
950: '#000000',
},
}SCSS
$custom: #9b7f22; $custom-light: #bca365; $custom-dark: #000000;
JSON
{
"hex": "#9b7f22",
"rgb": {
"r": 155,
"g": 127,
"b": 34
},
"hsl": {
"h": 46.116,
"s": 64.021,
"l": 37.059
},
"oklch": {
"l": 0.60656,
"c": 0.11188,
"h": 91.2
},
"luminance": 0.22263
}Semantic roles & 50–950 ramp
primary
#9B7F22
secondary
#5971C0
accent
#67E741
background
#FCFAF6
surface
#F8F3EB
border
#D1CDC6
text
#130F06
muted
#827F7A