#9D7F1F#9D7F1F
#9D7F1F is a mid, moderate yellow. Relative luminance 0.224; OKLCH L 60.9% C 0.114 H 90.3°. Best body text is #000000 at 5.49:1 contrast (WCAG AA passes).
Color values
| HEX | #9D7F1F |
|---|---|
| RGB | rgb(157, 127, 31) |
| HSL | hsl(46, 67%, 37%) |
| HSV | hsv(46, 80%, 62%) |
| CMYK | cmyk(0%, 19.1%, 80.3%, 38.4%) |
| CIE-LAB | lab(54.50, 1.92, 52.48) |
| CIE-LCH | lch(54.50, 52.52, 87.90°) |
| OKLab | oklab(60.85% -0.0005 0.114) |
| OKLCH | oklch(60.85% 0.114 90.3) |
| XYZ | xyz(21.7426, 22.4472, 4.4836) |
| Luminance | 0.2245 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Yellowish Brown
#9B7A01
ΔE00 2.42
Diarrhea
#9F8303
ΔE00 2.83
Puke Brown
#947706
ΔE00 3.32
Baby Poop
#937C00
ΔE00 3.50
Hazel
#8E7618
ΔE00 4.30
Dark Mustard
#A88905
ΔE00 4.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9D7F1F #1F3D9D
analogous
#9D401F #9D7F1F #7C9D1F
triadic
#9D7F1F #1F9D7F #7F1F9D
tetradic
#9D7F1F #1F9D40 #1F3D9D #9D1F7C
square
#9D7F1F #1F9D40 #1F3D9D #9D1F7C
split-complementary
#9D7F1F #1F7C9D #401F9D
monochromatic
#372C0B #6A5615 #9D7F1F #D0A829 #DEBE58
Accessibility & contrast
On white
3.83
#9D7F1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.49
#9D7F1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9D7F1F
5.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9D7F1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9D7F1F | 1.00 | 3.83 | 5.49 | 5.49 |
| #FFFFFF | 3.83 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.49 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.49 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8E7D0A
Deuteranopia (green-blind)
#968625
Tritanopia (blue-blind)
#AA746D
Achromatopsia (no color)
#828282
Design tokens & code
CSS
--color: #9d7f1f; /* rgb */ color: rgb(157, 127, 31); /* oklch */ color: oklch(60.9% 0.114 90.3);
Tailwind
colors: {
custom: {
50: '#bea363',
500: '#9d7f1f',
950: '#000000',
},
}SCSS
$custom: #9d7f1f; $custom-light: #bea363; $custom-dark: #000000;
JSON
{
"hex": "#9d7f1f",
"rgb": {
"r": 157,
"g": 127,
"b": 31
},
"hsl": {
"h": 45.714,
"s": 67.021,
"l": 36.863
},
"oklch": {
"l": 0.6085,
"c": 0.11398,
"h": 90.3
},
"luminance": 0.22446
}Semantic roles & 50–950 ramp
primary
#9D7F1F
secondary
#5670C2
accent
#67EA3E
background
#FCFAF6
surface
#F8F3EB
border
#D1CDC6
text
#130F06
muted
#827F7A