#9D8D20#9D8D20

#9D8D20 is a light, vivid yellow. Relative luminance 0.263; OKLCH L 63.9% C 0.123 H 100.4°. Best body text is #000000 at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#9D8D20
RGBrgb(157, 141, 32)
HSLhsl(52, 66%, 37%)
HSVhsv(52, 80%, 62%)
CMYKcmyk(0%, 10.2%, 79.6%, 38.4%)
CIE-LABlab(58.34, -5.77, 55.62)
CIE-LCHlch(58.34, 55.92, 95.93°)
OKLaboklab(63.89% -0.0222 0.1209)
OKLCHoklch(63.89% 0.123 100.4)
XYZxyz(23.6914, 26.3233, 5.1992)
Luminance0.2632 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8D20 #20309D
analogous
#9D4F20 #9D8D20 #6F9D20
triadic
#9D8D20 #209D8D #8D209D
tetradic
#9D8D20 #209D4F #20309D #9D206F
square
#9D8D20 #209D4F #20309D #9D206F
split-complementary
#9D8D20 #206F9D #4F209D
monochromatic
#37320B #6A5F16 #9D8D20 #D0BB2A #DDCD5A

Accessibility & contrast

On white

3.35
#9D8D20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.26
#9D8D20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8D20
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8D20#FFFFFF#000000##000000
##9D8D201.003.356.266.26
#FFFFFF3.351.0021.0021.00
#0000006.2621.001.001.00
##0000006.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8904
Deuteranopia (green-blind)
#A08F28
Tritanopia (blue-blind)
#AA8279
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #9d8d20;
/* rgb */ color: rgb(157, 141, 32);
/* oklch */ color: oklch(63.9% 0.123 100.4);
Tailwind
colors: {
  custom: {
    50: '#beae66',
    500: '#9d8d20',
    950: '#000000',
  },
}
SCSS
$custom: #9d8d20;
$custom-light: #beae66;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8d20",
  "rgb": {
    "r": 157,
    "g": 141,
    "b": 32
  },
  "hsl": {
    "h": 52.32,
    "s": 66.138,
    "l": 37.059
  },
  "oklch": {
    "l": 0.63893,
    "c": 0.12294,
    "h": 100.4
  },
  "luminance": 0.26322
}

Semantic roles & 50–950 ramp

primary
#9D8D20
secondary
#5765C1
accent
#55E93F
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9D8D20

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

Preview Lab → · Contrast checker → · Palette generator →

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