#9D8B24#9D8B24

#9D8B24 is a light, moderate yellow. Relative luminance 0.258; OKLCH L 63.5% C 0.119 H 98.8°. Best body text is #000000 at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#9D8B24
RGBrgb(157, 139, 36)
HSLhsl(51, 63%, 38%)
HSVhsv(51, 77%, 62%)
CMYKcmyk(0%, 11.5%, 77.1%, 38.4%)
CIE-LABlab(57.81, -4.52, 53.75)
CIE-LCHlch(57.81, 53.94, 94.81°)
OKLaboklab(63.48% -0.0183 0.1178)
OKLCHoklch(63.48% 0.119 98.8)
XYZxyz(23.4569, 25.7619, 5.4057)
Luminance0.2576 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8B24 #24369D
analogous
#9D4E24 #9D8B24 #739D24
triadic
#9D8B24 #249D8B #8B249D
tetradic
#9D8B24 #249D4E #24369D #9D2473
square
#9D8B24 #249D4E #24369D #9D2473
split-complementary
#9D8B24 #24739D #4E249D
monochromatic
#39330D #6B5F19 #9D8B24 #CFB72F #DBC961

Accessibility & contrast

On white

3.41
#9D8B24 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D8B24#FFFFFF#000000##000000
##9D8B241.003.416.156.15
#FFFFFF3.411.0021.0021.00
#0000006.1521.001.001.00
##0000006.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#99870F
Deuteranopia (green-blind)
#9E8E2B
Tritanopia (blue-blind)
#AA8077
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9d8b24;
/* rgb */ color: rgb(157, 139, 36);
/* oklch */ color: oklch(63.5% 0.119 98.8);
Tailwind
colors: {
  custom: {
    50: '#beac67',
    500: '#9d8b24',
    950: '#000000',
  },
}
SCSS
$custom: #9d8b24;
$custom-light: #beac67;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8b24",
  "rgb": {
    "r": 157,
    "g": 139,
    "b": 36
  },
  "hsl": {
    "h": 51.074,
    "s": 62.694,
    "l": 37.843
  },
  "oklch": {
    "l": 0.63478,
    "c": 0.11916,
    "h": 98.8
  },
  "luminance": 0.25761
}

Semantic roles & 50–950 ramp

primary
#9D8B24
secondary
#5D6CC0
accent
#5AE642
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9D8B24

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

Preview Lab → · Contrast checker → · Palette generator →

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