#9D7E1F#9D7E1F
#9D7E1F is a mid, moderate yellow. Relative luminance 0.222; OKLCH L 60.6% C 0.113 H 89.4°. Best body text is #000000 at 5.44:1 contrast (WCAG AA passes).
Color values
| HEX | #9D7E1F |
|---|---|
| RGB | rgb(157, 126, 31) |
| HSL | hsl(45, 67%, 37%) |
| HSV | hsv(45, 80%, 62%) |
| CMYK | cmyk(0%, 19.7%, 80.3%, 38.4%) |
| CIE-LAB | lab(54.23, 2.48, 52.24) |
| CIE-LCH | lch(54.23, 52.30, 87.28°) |
| OKLab | oklab(60.64% 0.0011 0.1135) |
| OKLCH | oklch(60.64% 0.113 89.4) |
| XYZ | xyz(21.6141, 22.1902, 4.4408) |
| Luminance | 0.2219 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Yellowish Brown
#9B7A01
ΔE00 2.23
Puke Brown
#947706
ΔE00 3.16
Diarrhea
#9F8303
ΔE00 3.20
Baby Poop
#937C00
ΔE00 3.69
Hazel
#8E7618
ΔE00 4.20
Mustard Brown
#AC7E04
ΔE00 4.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9D7E1F #1F3E9D
analogous
#9D3F1F #9D7E1F #7D9D1F
triadic
#9D7E1F #1F9D7E #7E1F9D
tetradic
#9D7E1F #1F9D3F #1F3E9D #9D1F7D
square
#9D7E1F #1F9D3F #1F3E9D #9D1F7D
split-complementary
#9D7E1F #1F7D9D #3F1F9D
monochromatic
#372C0B #6A5515 #9D7E1F #D0A729 #DEBD58
Accessibility & contrast
On white
3.86
#9D7E1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.44
#9D7E1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9D7E1F
5.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9D7E1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9D7E1F | 1.00 | 3.86 | 5.44 | 5.44 |
| #FFFFFF | 3.86 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.44 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.44 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8D7D0A
Deuteranopia (green-blind)
#958525
Tritanopia (blue-blind)
#AB726C
Achromatopsia (no color)
#828282
Design tokens & code
CSS
--color: #9d7e1f; /* rgb */ color: rgb(157, 126, 31); /* oklch */ color: oklch(60.6% 0.113 89.4);
Tailwind
colors: {
custom: {
50: '#bea363',
500: '#9d7e1f',
950: '#000000',
},
}SCSS
$custom: #9d7e1f; $custom-light: #bea363; $custom-dark: #000000;
JSON
{
"hex": "#9d7e1f",
"rgb": {
"r": 157,
"g": 126,
"b": 31
},
"hsl": {
"h": 45.238,
"s": 67.021,
"l": 36.863
},
"oklch": {
"l": 0.60637,
"c": 0.11346,
"h": 89.4
},
"luminance": 0.22189
}Semantic roles & 50–950 ramp
primary
#9D7E1F
secondary
#5670C2
accent
#68EA3E
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#130F06
muted
#827E7A