#9D7D1C#9D7D1C
#9D7D1C is a mid, moderate yellow. Relative luminance 0.219; OKLCH L 60.4% C 0.114 H 89.0°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).
Color values
| HEX | #9D7D1C |
|---|---|
| RGB | rgb(157, 125, 28) |
| HSL | hsl(45, 70%, 36%) |
| HSV | hsv(45, 82%, 62%) |
| CMYK | cmyk(0%, 20.4%, 82.2%, 38.4%) |
| CIE-LAB | lab(53.94, 2.93, 53.02) |
| CIE-LCH | lch(53.94, 53.10, 86.83°) |
| OKLab | oklab(60.41% 0.0021 0.1145) |
| OKLCH | oklch(60.41% 0.114 89) |
| XYZ | xyz(21.4492, 21.9206, 4.1998) |
| Luminance | 0.2192 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Yellowish Brown
#9B7A01
ΔE00 1.87
Puke Brown
#947706
ΔE00 2.92
Diarrhea
#9F8303
ΔE00 3.35
Baby Poop
#937C00
ΔE00 3.73
Hazel
#8E7618
ΔE00 4.13
Mustard Brown
#AC7E04
ΔE00 4.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9D7D1C #1C3C9D
analogous
#9D3D1C #9D7D1C #7D9D1C
triadic
#9D7D1C #1C9D7D #7D1C9D
tetradic
#9D7D1C #1C9D3D #1C3C9D #9D1C7D
square
#9D7D1C #1C9D3D #1C3C9D #9D1C7D
split-complementary
#9D7D1C #1C7D9D #3D1C9D
monochromatic
#352A09 #695413 #9D7D1C #D1A625 #E0BD53
Accessibility & contrast
On white
3.90
#9D7D1C on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.38
#9D7D1C on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9D7D1C
5.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9D7D1C | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9D7D1C | 1.00 | 3.90 | 5.38 | 5.38 |
| #FFFFFF | 3.90 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.38 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.38 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8D7C03
Deuteranopia (green-blind)
#948522
Tritanopia (blue-blind)
#AB716B
Achromatopsia (no color)
#818181
Design tokens & code
CSS
--color: #9d7d1c; /* rgb */ color: rgb(157, 125, 28); /* oklch */ color: oklch(60.4% 0.114 89.0);
Tailwind
colors: {
custom: {
50: '#bea262',
500: '#9d7d1c',
950: '#000000',
},
}SCSS
$custom: #9d7d1c; $custom-light: #bea262; $custom-dark: #000000;
JSON
{
"hex": "#9d7d1c",
"rgb": {
"r": 157,
"g": 125,
"b": 28
},
"hsl": {
"h": 45.116,
"s": 69.73,
"l": 36.275
},
"oklch": {
"l": 0.60407,
"c": 0.11448,
"h": 89
},
"luminance": 0.21919
}Semantic roles & 50–950 ramp
primary
#9D7D1C
secondary
#516EC3
accent
#67ED3B
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#130F05
muted
#827E7A