#9D8A21#9D8A21

#9D8A21 is a light, vivid yellow. Relative luminance 0.255; OKLCH L 63.2% C 0.120 H 98.3°. Best body text is #000000 at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#9D8A21
RGBrgb(157, 138, 33)
HSLhsl(51, 65%, 37%)
HSVhsv(51, 79%, 62%)
CMYKcmyk(0%, 12.1%, 79%, 38.4%)
CIE-LABlab(57.52, -4.10, 54.54)
CIE-LCHlch(57.52, 54.69, 94.30°)
OKLaboklab(63.24% -0.0174 0.1188)
OKLCHoklch(63.24% 0.12 98.3)
XYZxyz(23.2688, 25.4561, 5.1264)
Luminance0.2545 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8A21 #21349D
analogous
#9D4C21 #9D8A21 #729D21
triadic
#9D8A21 #219D8A #8A219D
tetradic
#9D8A21 #219D4C #21349D #9D2172
square
#9D8A21 #219D4C #21349D #9D2172
split-complementary
#9D8A21 #21729D #4C219D
monochromatic
#38310C #6A5E16 #9D8A21 #D0B62C #DDC95C

Accessibility & contrast

On white

3.45
#9D8A21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.09
#9D8A21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8A21
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8A21#FFFFFF#000000##000000
##9D8A211.003.456.096.09
#FFFFFF3.451.0021.0021.00
#0000006.0921.001.001.00
##0000006.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#988608
Deuteranopia (green-blind)
#9D8D28
Tritanopia (blue-blind)
#AA7F76
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9d8a21;
/* rgb */ color: rgb(157, 138, 33);
/* oklch */ color: oklch(63.2% 0.120 98.3);
Tailwind
colors: {
  custom: {
    50: '#beab66',
    500: '#9d8a21',
    950: '#000000',
  },
}
SCSS
$custom: #9d8a21;
$custom-light: #beab66;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8a21",
  "rgb": {
    "r": 157,
    "g": 138,
    "b": 33
  },
  "hsl": {
    "h": 50.806,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.6324,
    "c": 0.12008,
    "h": 98.3
  },
  "luminance": 0.25455
}

Semantic roles & 50–950 ramp

primary
#9D8A21
secondary
#5969C1
accent
#59E840
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9D8A21

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

Preview Lab → · Contrast checker → · Palette generator →

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