#9D8E20#9D8E20

#9D8E20 is a light, vivid yellow. Relative luminance 0.266; OKLCH L 64.1% C 0.124 H 101.1°. Best body text is #000000 at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#9D8E20
RGBrgb(157, 142, 32)
HSLhsl(53, 66%, 37%)
HSVhsv(53, 80%, 62%)
CMYKcmyk(0%, 9.6%, 79.6%, 38.4%)
CIE-LABlab(58.62, -6.32, 55.87)
CIE-LCHlch(58.62, 56.22, 96.45°)
OKLaboklab(64.11% -0.0237 0.1215)
OKLCHoklch(64.11% 0.124 101.1)
XYZxyz(23.8395, 26.6195, 5.2486)
Luminance0.2662 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8E20 #202F9D
analogous
#9D5020 #9D8E20 #6E9D20
triadic
#9D8E20 #209D8E #8E209D
tetradic
#9D8E20 #209D50 #202F9D #9D206E
square
#9D8E20 #209D50 #202F9D #9D206E
split-complementary
#9D8E20 #206E9D #50209D
monochromatic
#37320B #6A6016 #9D8E20 #D0BC2A #DDCE5A

Accessibility & contrast

On white

3.32
#9D8E20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.32
#9D8E20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8E20
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8E20#FFFFFF#000000##000000
##9D8E201.003.326.326.32
#FFFFFF3.321.0021.0021.00
#0000006.3221.001.001.00
##0000006.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8A03
Deuteranopia (green-blind)
#A09028
Tritanopia (blue-blind)
#AA837A
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9d8e20;
/* rgb */ color: rgb(157, 142, 32);
/* oklch */ color: oklch(64.1% 0.124 101.1);
Tailwind
colors: {
  custom: {
    50: '#beae66',
    500: '#9d8e20',
    950: '#000000',
  },
}
SCSS
$custom: #9d8e20;
$custom-light: #beae66;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8e20",
  "rgb": {
    "r": 157,
    "g": 142,
    "b": 32
  },
  "hsl": {
    "h": 52.8,
    "s": 66.138,
    "l": 37.059
  },
  "oklch": {
    "l": 0.64114,
    "c": 0.12376,
    "h": 101.1
  },
  "luminance": 0.26618
}

Semantic roles & 50–950 ramp

primary
#9D8E20
secondary
#5764C1
accent
#53E93F
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9D8E20

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

Preview Lab → · Contrast checker → · Palette generator →

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