#9D8D24#9D8D24

#9D8D24 is a light, vivid yellow. Relative luminance 0.263; OKLCH L 63.9% C 0.121 H 100.2°. Best body text is #000000 at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#9D8D24
RGBrgb(157, 141, 36)
HSLhsl(52, 63%, 38%)
HSVhsv(52, 77%, 62%)
CMYKcmyk(0%, 10.2%, 77.1%, 38.4%)
CIE-LABlab(58.36, -5.61, 54.27)
CIE-LCHlch(58.36, 54.56, 95.90°)
OKLaboklab(63.92% -0.0214 0.1189)
OKLCHoklch(63.92% 0.121 100.2)
XYZxyz(23.7491, 26.3464, 5.5031)
Luminance0.2635 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8D24 #24349D
analogous
#9D5024 #9D8D24 #709D24
triadic
#9D8D24 #249D8D #8D249D
tetradic
#9D8D24 #249D50 #24349D #9D2470
square
#9D8D24 #249D50 #24349D #9D2470
split-complementary
#9D8D24 #24709D #50249D
monochromatic
#39340D #6B6019 #9D8D24 #CFBA2F #DBCB61

Accessibility & contrast

On white

3.35
#9D8D24 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.27
#9D8D24 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8D24
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8D24#FFFFFF#000000##000000
##9D8D241.003.356.276.27
#FFFFFF3.351.0021.0021.00
#0000006.2721.001.001.00
##0000006.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B890E
Deuteranopia (green-blind)
#9F8F2B
Tritanopia (blue-blind)
#AA8279
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #9d8d24;
/* rgb */ color: rgb(157, 141, 36);
/* oklch */ color: oklch(63.9% 0.121 100.2);
Tailwind
colors: {
  custom: {
    50: '#beae67',
    500: '#9d8d24',
    950: '#000000',
  },
}
SCSS
$custom: #9d8d24;
$custom-light: #beae67;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8d24",
  "rgb": {
    "r": 157,
    "g": 141,
    "b": 36
  },
  "hsl": {
    "h": 52.066,
    "s": 62.694,
    "l": 37.843
  },
  "oklch": {
    "l": 0.63917,
    "c": 0.12076,
    "h": 100.2
  },
  "luminance": 0.26345
}

Semantic roles & 50–950 ramp

primary
#9D8D24
secondary
#5D6AC0
accent
#58E642
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9D8D24

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

Preview Lab → · Contrast checker → · Palette generator →

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