#9A7F22#9A7F22
#9A7F22 is a mid, moderate yellow. Relative luminance 0.222; OKLCH L 60.6% C 0.112 H 91.9°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).
Color values
| HEX | #9A7F22 |
|---|---|
| RGB | rgb(154, 127, 34) |
| HSL | hsl(47, 64%, 37%) |
| HSV | hsv(47, 78%, 60%) |
| CMYK | cmyk(0%, 17.5%, 77.9%, 39.6%) |
| CIE-LAB | lab(54.20, 0.66, 51.01) |
| CIE-LCH | lch(54.20, 51.01, 89.26°) |
| OKLab | oklab(60.55% -0.0036 0.1116) |
| OKLCH | oklch(60.55% 0.112 91.9) |
| XYZ | xyz(21.2057, 22.1656, 4.6745) |
| Luminance | 0.2216 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Yellowish Brown
#9B7A01
ΔE00 2.92
Diarrhea
#9F8303
ΔE00 3.04
Baby Poop
#937C00
ΔE00 3.04
Puke Brown
#947706
ΔE00 3.27
Hazel
#8E7618
ΔE00 3.77
Poo
#8F7303
ΔE00 4.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9A7F22 #223D9A
analogous
#9A4322 #9A7F22 #799A22
triadic
#9A7F22 #229A7F #7F229A
tetradic
#9A7F22 #229A43 #223D9A #9A2279
square
#9A7F22 #229A43 #223D9A #9A2279
split-complementary
#9A7F22 #22799A #43229A
monochromatic
#362C0C #685617 #9A7F22 #CCA82D #DBBE5B
Accessibility & contrast
On white
3.87
#9A7F22 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.43
#9A7F22 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9A7F22
5.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9A7F22 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9A7F22 | 1.00 | 3.87 | 5.43 | 5.43 |
| #FFFFFF | 3.87 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.43 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.43 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8E7D10
Deuteranopia (green-blind)
#948528
Tritanopia (blue-blind)
#A7746D
Achromatopsia (no color)
#828282
Design tokens & code
CSS
--color: #9a7f22; /* rgb */ color: rgb(154, 127, 34); /* oklch */ color: oklch(60.6% 0.112 91.9);
Tailwind
colors: {
custom: {
50: '#bca365',
500: '#9a7f22',
950: '#000000',
},
}SCSS
$custom: #9a7f22; $custom-light: #bca365; $custom-dark: #000000;
JSON
{
"hex": "#9a7f22",
"rgb": {
"r": 154,
"g": 127,
"b": 34
},
"hsl": {
"h": 46.5,
"s": 63.83,
"l": 36.863
},
"oklch": {
"l": 0.6055,
"c": 0.11168,
"h": 91.9
},
"luminance": 0.22164
}Semantic roles & 50–950 ramp
primary
#9A7F22
secondary
#5870BF
accent
#66E741
background
#FCFAF6
surface
#F8F3EB
border
#D1CDC6
text
#120F06
muted
#817F7A