#9D8D52#9D8D52

#9D8D52 is a light, moderate yellow. Relative luminance 0.268; OKLCH L 64.4% C 0.081 H 94.7°. Best body text is #000000 at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#9D8D52
RGBrgb(157, 141, 82)
HSLhsl(47, 31%, 47%)
HSVhsv(47, 48%, 62%)
CMYKcmyk(0%, 10.2%, 47.8%, 38.4%)
CIE-LABlab(58.81, -2.32, 33.52)
CIE-LCHlch(58.81, 33.60, 93.96°)
OKLaboklab(64.42% -0.0066 0.0807)
OKLCHoklch(64.42% 0.081 94.7)
XYZxyz(24.9532, 26.8280, 11.8449)
Luminance0.2683 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8D52 #52629D
analogous
#9D6852 #9D8D52 #889D52
triadic
#9D8D52 #529D8D #8D529D
tetradic
#9D8D52 #529D68 #52629D #9D5288
square
#9D8D52 #529D68 #52629D #9D5288
split-complementary
#9D8D52 #52889D #68529D
monochromatic
#4D4528 #75693D #9D8D52 #B7A975 #CCC29D

Accessibility & contrast

On white

3.30
#9D8D52 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.37
#9D8D52 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8D52
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8D52#FFFFFF#000000##000000
##9D8D521.003.306.376.37
#FFFFFF3.301.0021.0021.00
#0000006.3721.001.001.00
##0000006.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#988B4D
Deuteranopia (green-blind)
#9C9054
Tritanopia (blue-blind)
#A7857F
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9d8d52;
/* rgb */ color: rgb(157, 141, 82);
/* oklch */ color: oklch(64.4% 0.081 94.7);
Tailwind
colors: {
  custom: {
    50: '#bbae84',
    500: '#9d8d52',
    950: '#000000',
  },
}
SCSS
$custom: #9d8d52;
$custom-light: #bbae84;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8d52",
  "rgb": {
    "r": 157,
    "g": 141,
    "b": 82
  },
  "hsl": {
    "h": 47.2,
    "s": 31.381,
    "l": 46.863
  },
  "oklch": {
    "l": 0.64419,
    "c": 0.08096,
    "h": 94.7
  },
  "luminance": 0.26827
}

Semantic roles & 50–950 ramp

primary
#9D8D52
secondary
#929AB9
accent
#76C860
background
#FBFAF8
surface
#F7F4EF
border
#D0CECA
text
#12100B
muted
#817F7C

Preview Lab

Preview with #9D8D52

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

Preview Lab → · Contrast checker → · Palette generator →

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