#9D7F1D#9D7F1D
#9D7F1D is a mid, moderate yellow. Relative luminance 0.224; OKLCH L 60.8% C 0.115 H 90.5°. Best body text is #000000 at 5.49:1 contrast (WCAG AA passes).
Color values
| HEX | #9D7F1D |
|---|---|
| RGB | rgb(157, 127, 29) |
| HSL | hsl(46, 69%, 36%) |
| HSV | hsv(46, 82%, 62%) |
| CMYK | cmyk(0%, 19.1%, 81.5%, 38.4%) |
| CIE-LAB | lab(54.49, 1.85, 53.16) |
| CIE-LCH | lch(54.49, 53.20, 88.01°) |
| OKLab | oklab(60.84% -0.0009 0.115) |
| OKLCH | oklch(60.84% 0.115 90.5) |
| XYZ | xyz(21.7171, 22.4370, 4.3491) |
| Luminance | 0.2244 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Yellowish Brown
#9B7A01
ΔE00 2.30
Diarrhea
#9F8303
ΔE00 2.65
Puke Brown
#947706
ΔE00 3.25
Baby Poop
#937C00
ΔE00 3.36
Hazel
#8E7618
ΔE00 4.30
Dark Mustard
#A88905
ΔE00 4.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9D7F1D #1D3B9D
analogous
#9D3F1D #9D7F1D #7B9D1D
triadic
#9D7F1D #1D9D7F #7F1D9D
tetradic
#9D7F1D #1D9D3F #1D3B9D #9D1D7B
square
#9D7F1D #1D9D3F #1D3B9D #9D1D7B
split-complementary
#9D7F1D #1D7B9D #3F1D9D
monochromatic
#362B0A #695513 #9D7F1D #D1A927 #E0BF55
Accessibility & contrast
On white
3.83
#9D7F1D on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.49
#9D7F1D on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9D7F1D
5.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9D7F1D | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9D7F1D | 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)
#8E7D05
Deuteranopia (green-blind)
#968623
Tritanopia (blue-blind)
#AB736D
Achromatopsia (no color)
#828282
Design tokens & code
CSS
--color: #9d7f1d; /* rgb */ color: rgb(157, 127, 29); /* oklch */ color: oklch(60.8% 0.115 90.5);
Tailwind
colors: {
custom: {
50: '#bea362',
500: '#9d7f1d',
950: '#000000',
},
}SCSS
$custom: #9d7f1d; $custom-light: #bea362; $custom-dark: #000000;
JSON
{
"hex": "#9d7f1d",
"rgb": {
"r": 157,
"g": 127,
"b": 29
},
"hsl": {
"h": 45.938,
"s": 68.817,
"l": 36.471
},
"oklch": {
"l": 0.60838,
"c": 0.115,
"h": 90.5
},
"luminance": 0.22436
}Semantic roles & 50–950 ramp
primary
#9D7F1D
secondary
#536DC3
accent
#65EC3C
background
#FCFAF6
surface
#F8F3EB
border
#D1CDC6
text
#130F06
muted
#827F7A