#9D8520#9D8520

#9D8520 is a light, moderate yellow. Relative luminance 0.240; OKLCH L 62.1% C 0.117 H 94.8°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#9D8520
RGBrgb(157, 133, 32)
HSLhsl(48, 66%, 37%)
HSVhsv(48, 80%, 62%)
CMYKcmyk(0%, 15.3%, 79.6%, 38.4%)
CIE-LABlab(56.14, -1.38, 53.62)
CIE-LCHlch(56.14, 53.64, 91.48°)
OKLaboklab(62.15% -0.0098 0.1166)
OKLCHoklch(62.15% 0.117 94.8)
XYZxyz(22.5541, 24.0487, 4.8201)
Luminance0.2405 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8520 #20389D
analogous
#9D4720 #9D8520 #779D20
triadic
#9D8520 #209D85 #85209D
tetradic
#9D8520 #209D47 #20389D #9D2077
square
#9D8520 #209D47 #20389D #9D2077
split-complementary
#9D8520 #20779D #47209D
monochromatic
#372F0B #6A5A16 #9D8520 #D0B02A #DDC45A

Accessibility & contrast

On white

3.61
#9D8520 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.81
#9D8520 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8520
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8520#FFFFFF#000000##000000
##9D85201.003.615.815.81
#FFFFFF3.611.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#948209
Deuteranopia (green-blind)
#9A8A27
Tritanopia (blue-blind)
#AA7A72
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #9d8520;
/* rgb */ color: rgb(157, 133, 32);
/* oklch */ color: oklch(62.1% 0.117 94.8);
Tailwind
colors: {
  custom: {
    50: '#bea865',
    500: '#9d8520',
    950: '#000000',
  },
}
SCSS
$custom: #9d8520;
$custom-light: #bea865;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8520",
  "rgb": {
    "r": 157,
    "g": 133,
    "b": 32
  },
  "hsl": {
    "h": 48.48,
    "s": 66.138,
    "l": 37.059
  },
  "oklch": {
    "l": 0.62145,
    "c": 0.11705,
    "h": 94.8
  },
  "luminance": 0.24047
}

Semantic roles & 50–950 ramp

primary
#9D8520
secondary
#576CC1
accent
#5FE93F
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9D8520

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

Preview Lab → · Contrast checker → · Palette generator →

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