#9D8B20#9D8B20

#9D8B20 is a light, vivid yellow. Relative luminance 0.257; OKLCH L 63.5% C 0.121 H 99.1°. Best body text is #000000 at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#9D8B20
RGBrgb(157, 139, 32)
HSLhsl(51, 66%, 37%)
HSVhsv(51, 80%, 62%)
CMYKcmyk(0%, 11.5%, 79.6%, 38.4%)
CIE-LABlab(57.79, -4.68, 55.12)
CIE-LCHlch(57.79, 55.32, 94.86°)
OKLaboklab(63.45% -0.0191 0.1199)
OKLCHoklch(63.45% 0.121 99.1)
XYZxyz(23.3992, 25.7388, 5.1018)
Luminance0.2574 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8B20 #20329D
analogous
#9D4D20 #9D8B20 #719D20
triadic
#9D8B20 #209D8B #8B209D
tetradic
#9D8B20 #209D4D #20329D #9D2071
square
#9D8B20 #209D4D #20329D #9D2071
split-complementary
#9D8B20 #20719D #4D209D
monochromatic
#37310B #6A5E16 #9D8B20 #D0B82A #DDCA5A

Accessibility & contrast

On white

3.42
#9D8B20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.15
#9D8B20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8B20
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8B20#FFFFFF#000000##000000
##9D8B201.003.426.156.15
#FFFFFF3.421.0021.0021.00
#0000006.1521.001.001.00
##0000006.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#998705
Deuteranopia (green-blind)
#9E8E28
Tritanopia (blue-blind)
#AA8077
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9d8b20;
/* rgb */ color: rgb(157, 139, 32);
/* oklch */ color: oklch(63.5% 0.121 99.1);
Tailwind
colors: {
  custom: {
    50: '#beac65',
    500: '#9d8b20',
    950: '#000000',
  },
}
SCSS
$custom: #9d8b20;
$custom-light: #beac65;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8b20",
  "rgb": {
    "r": 157,
    "g": 139,
    "b": 32
  },
  "hsl": {
    "h": 51.36,
    "s": 66.138,
    "l": 37.059
  },
  "oklch": {
    "l": 0.63453,
    "c": 0.12137,
    "h": 99.1
  },
  "luminance": 0.25738
}

Semantic roles & 50–950 ramp

primary
#9D8B20
secondary
#5767C1
accent
#57E93F
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9D8B20

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

Preview Lab → · Contrast checker → · Palette generator →

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