#9D8524#9D8524

#9D8524 is a light, moderate yellow. Relative luminance 0.241; OKLCH L 62.2% C 0.115 H 94.5°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#9D8524
RGBrgb(157, 133, 36)
HSLhsl(48, 63%, 38%)
HSVhsv(48, 77%, 62%)
CMYKcmyk(0%, 15.3%, 77.1%, 38.4%)
CIE-LABlab(56.16, -1.22, 52.21)
CIE-LCHlch(56.16, 52.22, 91.34°)
OKLaboklab(62.17% -0.0089 0.1145)
OKLCHoklch(62.17% 0.115 94.5)
XYZxyz(22.6118, 24.0718, 5.1240)
Luminance0.2407 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8524 #243C9D
analogous
#9D4824 #9D8524 #789D24
triadic
#9D8524 #249D85 #85249D
tetradic
#9D8524 #249D48 #243C9D #9D2478
square
#9D8524 #249D48 #243C9D #9D2478
split-complementary
#9D8524 #24789D #48249D
monochromatic
#39310D #6B5B19 #9D8524 #CFAF2F #DBC361

Accessibility & contrast

On white

3.61
#9D8524 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.81
#9D8524 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8524
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8524#FFFFFF#000000##000000
##9D85241.003.615.815.81
#FFFFFF3.611.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#948212
Deuteranopia (green-blind)
#9A8A2A
Tritanopia (blue-blind)
#AA7A72
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #9d8524;
/* rgb */ color: rgb(157, 133, 36);
/* oklch */ color: oklch(62.2% 0.115 94.5);
Tailwind
colors: {
  custom: {
    50: '#bea866',
    500: '#9d8524',
    950: '#000000',
  },
}
SCSS
$custom: #9d8524;
$custom-light: #bea866;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8524",
  "rgb": {
    "r": 157,
    "g": 133,
    "b": 36
  },
  "hsl": {
    "h": 48.099,
    "s": 62.694,
    "l": 37.843
  },
  "oklch": {
    "l": 0.62171,
    "c": 0.11481,
    "h": 94.5
  },
  "luminance": 0.24071
}

Semantic roles & 50–950 ramp

primary
#9D8524
secondary
#5D71C0
accent
#63E642
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9D8524

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

Preview Lab → · Contrast checker → · Palette generator →

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