#9D7E20#9D7E20

#9D7E20 is a mid, moderate yellow. Relative luminance 0.222; OKLCH L 60.6% C 0.113 H 89.3°. Best body text is #000000 at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#9D7E20
RGBrgb(157, 126, 32)
HSLhsl(45, 66%, 37%)
HSVhsv(45, 80%, 62%)
CMYKcmyk(0%, 19.7%, 79.6%, 38.4%)
CIE-LABlab(54.23, 2.52, 51.89)
CIE-LCHlch(54.23, 51.95, 87.22°)
OKLaboklab(60.64% 0.0013 0.1129)
OKLCHoklch(60.64% 0.113 89.3)
XYZxyz(21.6275, 22.1955, 4.5113)
Luminance0.2219 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D7E20 #203F9D
analogous
#9D4020 #9D7E20 #7E9D20
triadic
#9D7E20 #209D7E #7E209D
tetradic
#9D7E20 #209D40 #203F9D #9D207E
square
#9D7E20 #209D40 #203F9D #9D207E
split-complementary
#9D7E20 #207E9D #40209D
monochromatic
#372C0B #6A5516 #9D7E20 #D0A72A #DDBD5A

Accessibility & contrast

On white

3.86
#9D7E20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.44
#9D7E20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D7E20
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D7E20#FFFFFF#000000##000000
##9D7E201.003.865.445.44
#FFFFFF3.861.0021.0021.00
#0000005.4421.001.001.00
##0000005.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D0C
Deuteranopia (green-blind)
#958526
Tritanopia (blue-blind)
#AB736C
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #9d7e20;
/* rgb */ color: rgb(157, 126, 32);
/* oklch */ color: oklch(60.6% 0.113 89.3);
Tailwind
colors: {
  custom: {
    50: '#bea364',
    500: '#9d7e20',
    950: '#000000',
  },
}
SCSS
$custom: #9d7e20;
$custom-light: #bea364;
$custom-dark: #000000;
JSON
{
  "hex": "#9d7e20",
  "rgb": {
    "r": 157,
    "g": 126,
    "b": 32
  },
  "hsl": {
    "h": 45.12,
    "s": 66.138,
    "l": 37.059
  },
  "oklch": {
    "l": 0.60644,
    "c": 0.11292,
    "h": 89.3
  },
  "luminance": 0.22194
}

Semantic roles & 50–950 ramp

primary
#9D7E20
secondary
#5772C1
accent
#69E93F
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#130F06
muted
#827E7A

Preview Lab

Preview with #9D7E20

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#9D7E20 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva