#9A7F2E#9A7F2E
#9A7F2E is a mid, moderate yellow. Relative luminance 0.222; OKLCH L 60.6% C 0.104 H 90.3°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).
Color values
| HEX | #9A7F2E |
|---|---|
| RGB | rgb(154, 127, 46) |
| HSL | hsl(45, 54%, 39%) |
| HSV | hsv(45, 70%, 60%) |
| CMYK | cmyk(0%, 17.5%, 70.1%, 39.6%) |
| CIE-LAB | lab(54.29, 1.26, 46.15) |
| CIE-LCH | lch(54.29, 46.17, 88.44°) |
| OKLab | oklab(60.65% -0.0005 0.1037) |
| OKLCH | oklch(60.65% 0.104 90.3) |
| XYZ | xyz(21.4101, 22.2473, 5.7507) |
| Luminance | 0.2225 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Yellowish Brown
#9B7A01
ΔE00 4.03
Puke Brown
#947706
ΔE00 4.19
Hazel
#8E7618
ΔE00 4.19
Baby Poop
#937C00
ΔE00 4.43
Diarrhea
#9F8303
ΔE00 4.47
Poo
#8F7303
ΔE00 5.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9A7F2E #2E499A
analogous
#9A492E #9A7F2E #7F9A2E
triadic
#9A7F2E #2E9A7F #7F2E9A
tetradic
#9A7F2E #2E9A49 #2E499A #9A2E7F
square
#9A7F2E #2E9A49 #2E499A #9A2E7F
split-complementary
#9A7F2E #2E7F9A #492E9A
monochromatic
#3C3112 #6B5820 #9A7F2E #C6A43F #D4BB6F
Accessibility & contrast
On white
3.85
#9A7F2E on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.45
#9A7F2E on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9A7F2E
5.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9A7F2E | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9A7F2E | 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)
#8D7D24
Deuteranopia (green-blind)
#948532
Tritanopia (blue-blind)
#A7746E
Achromatopsia (no color)
#828282
Design tokens & code
CSS
--color: #9a7f2e; /* rgb */ color: rgb(154, 127, 46); /* oklch */ color: oklch(60.6% 0.104 90.3);
Tailwind
colors: {
custom: {
50: '#bba36b',
500: '#9a7f2e',
950: '#000000',
},
}SCSS
$custom: #9a7f2e; $custom-light: #bba36b; $custom-dark: #000000;
JSON
{
"hex": "#9a7f2e",
"rgb": {
"r": 154,
"g": 127,
"b": 46
},
"hsl": {
"h": 45,
"s": 54,
"l": 39.216
},
"oklch": {
"l": 0.60646,
"c": 0.1037,
"h": 90.3
},
"luminance": 0.22246
}Semantic roles & 50–950 ramp
primary
#9A7F2E
secondary
#697DBB
accent
#6FDD4A
background
#FBFAF6
surface
#F7F3EB
border
#D0CDC6
text
#120F07
muted
#817F7A