#9D8921#9D8921

#9D8921 is a light, moderate yellow. Relative luminance 0.252; OKLCH L 63.0% C 0.119 H 97.6°. Best body text is #000000 at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#9D8921
RGBrgb(157, 137, 33)
HSLhsl(50, 65%, 37%)
HSVhsv(50, 79%, 62%)
CMYKcmyk(0%, 12.7%, 79%, 38.4%)
CIE-LABlab(57.24, -3.55, 54.28)
CIE-LCHlch(57.24, 54.40, 93.74°)
OKLaboklab(63.02% -0.0158 0.1183)
OKLCHoklch(63.02% 0.119 97.6)
XYZxyz(23.1260, 25.1704, 5.0788)
Luminance0.2517 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8921 #21359D
analogous
#9D4B21 #9D8921 #739D21
triadic
#9D8921 #219D89 #89219D
tetradic
#9D8921 #219D4B #21359D #9D2173
square
#9D8921 #219D4B #21359D #9D2173
split-complementary
#9D8921 #21739D #4B219D
monochromatic
#38310C #6A5D16 #9D8921 #D0B52C #DDC85C

Accessibility & contrast

On white

3.48
#9D8921 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.03
#9D8921 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8921
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8921#FFFFFF#000000##000000
##9D89211.003.486.036.03
#FFFFFF3.481.0021.0021.00
#0000006.0321.001.001.00
##0000006.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#978609
Deuteranopia (green-blind)
#9D8C28
Tritanopia (blue-blind)
#AA7E75
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #9d8921;
/* rgb */ color: rgb(157, 137, 33);
/* oklch */ color: oklch(63.0% 0.119 97.6);
Tailwind
colors: {
  custom: {
    50: '#beab65',
    500: '#9d8921',
    950: '#000000',
  },
}
SCSS
$custom: #9d8921;
$custom-light: #beab65;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8921",
  "rgb": {
    "r": 157,
    "g": 137,
    "b": 33
  },
  "hsl": {
    "h": 50.323,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.63021,
    "c": 0.11933,
    "h": 97.6
  },
  "luminance": 0.25169
}

Semantic roles & 50–950 ramp

primary
#9D8921
secondary
#596AC1
accent
#5BE840
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9D8921

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

Preview Lab → · Contrast checker → · Palette generator →

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