#9D8525#9D8525

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

Color values

HEX#9D8525
RGBrgb(157, 133, 37)
HSLhsl(48, 62%, 38%)
HSVhsv(48, 76%, 62%)
CMYKcmyk(0%, 15.3%, 76.4%, 38.4%)
CIE-LABlab(56.17, -1.17, 51.84)
CIE-LCHlch(56.17, 51.85, 91.30°)
OKLaboklab(62.18% -0.0087 0.1139)
OKLCHoklch(62.18% 0.114 94.4)
XYZxyz(22.6273, 24.0780, 5.2056)
Luminance0.2408 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8525 #253D9D
analogous
#9D4925 #9D8525 #799D25
triadic
#9D8525 #259D85 #85259D
tetradic
#9D8525 #259D49 #253D9D #9D2579
square
#9D8525 #259D49 #253D9D #9D2579
split-complementary
#9D8525 #25799D #49259D
monochromatic
#3A310E #6B5B19 #9D8525 #CEAF31 #DAC262

Accessibility & contrast

On white

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

On black

5.82
#9D8525 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8525
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8525#FFFFFF#000000##000000
##9D85251.003.615.825.82
#FFFFFF3.611.0021.0021.00
#0000005.8221.001.001.00
##0000005.8221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9d8525;
/* rgb */ color: rgb(157, 133, 37);
/* oklch */ color: oklch(62.2% 0.114 94.4);
Tailwind
colors: {
  custom: {
    50: '#bea867',
    500: '#9d8525',
    950: '#000000',
  },
}
SCSS
$custom: #9d8525;
$custom-light: #bea867;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8525",
  "rgb": {
    "r": 157,
    "g": 133,
    "b": 37
  },
  "hsl": {
    "h": 48,
    "s": 61.856,
    "l": 38.039
  },
  "oklch": {
    "l": 0.62178,
    "c": 0.1142,
    "h": 94.4
  },
  "luminance": 0.24077
}

Semantic roles & 50–950 ramp

primary
#9D8525
secondary
#5E72BF
accent
#63E543
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9D8525

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

Preview Lab → · Contrast checker → · Palette generator →

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