#9D8F20#9D8F20

#9D8F20 is a light, vivid yellow. Relative luminance 0.269; OKLCH L 64.3% C 0.125 H 101.7°. Best body text is #000000 at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#9D8F20
RGBrgb(157, 143, 32)
HSLhsl(53, 66%, 37%)
HSVhsv(53, 80%, 62%)
CMYKcmyk(0%, 8.9%, 79.6%, 38.4%)
CIE-LABlab(58.90, -6.86, 56.12)
CIE-LCHlch(58.90, 56.54, 96.97°)
OKLaboklab(64.33% -0.0253 0.122)
OKLCHoklch(64.33% 0.125 101.7)
XYZxyz(23.9890, 26.9184, 5.2984)
Luminance0.2692 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8F20 #202E9D
analogous
#9D5120 #9D8F20 #6D9D20
triadic
#9D8F20 #209D8F #8F209D
tetradic
#9D8F20 #209D51 #202E9D #9D206D
square
#9D8F20 #209D51 #202E9D #9D206D
split-complementary
#9D8F20 #206D9D #51209D
monochromatic
#37320B #6A6116 #9D8F20 #D0BD2A #DDCF5A

Accessibility & contrast

On white

3.29
#9D8F20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.38
#9D8F20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8F20
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8F20#FFFFFF#000000##000000
##9D8F201.003.296.386.38
#FFFFFF3.291.0021.0021.00
#0000006.3821.001.001.00
##0000006.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8A02
Deuteranopia (green-blind)
#A19029
Tritanopia (blue-blind)
#AA847A
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #9d8f20;
/* rgb */ color: rgb(157, 143, 32);
/* oklch */ color: oklch(64.3% 0.125 101.7);
Tailwind
colors: {
  custom: {
    50: '#beaf66',
    500: '#9d8f20',
    950: '#000000',
  },
}
SCSS
$custom: #9d8f20;
$custom-light: #beaf66;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8f20",
  "rgb": {
    "r": 157,
    "g": 143,
    "b": 32
  },
  "hsl": {
    "h": 53.28,
    "s": 66.138,
    "l": 37.059
  },
  "oklch": {
    "l": 0.64335,
    "c": 0.12458,
    "h": 101.7
  },
  "luminance": 0.26917
}

Semantic roles & 50–950 ramp

primary
#9D8F20
secondary
#5763C1
accent
#52E93F
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9D8F20

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

Preview Lab → · Contrast checker → · Palette generator →

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