#9D8531#9D8531

#9D8531 is a light, moderate yellow. Relative luminance 0.242; OKLCH L 62.3% C 0.106 H 93.0°. Best body text is #000000 at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#9D8531
RGBrgb(157, 133, 49)
HSLhsl(47, 52%, 40%)
HSVhsv(47, 69%, 62%)
CMYKcmyk(0%, 15.3%, 68.8%, 38.4%)
CIE-LABlab(56.25, -0.55, 46.95)
CIE-LCHlch(56.25, 46.95, 90.67°)
OKLaboklab(62.28% -0.0055 0.1058)
OKLCHoklch(62.28% 0.106 93)
XYZxyz(22.8477, 24.1662, 6.3662)
Luminance0.2417 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8531 #31499D
analogous
#9D4F31 #9D8531 #7F9D31
triadic
#9D8531 #319D85 #85319D
tetradic
#9D8531 #319D4F #31499D #9D317F
square
#9D8531 #319D4F #31499D #9D317F
split-complementary
#9D8531 #317F9D #4F319D
monochromatic
#403614 #6E5D22 #9D8531 #C5A946 #D4BF75

Accessibility & contrast

On white

3.60
#9D8531 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.83
#9D8531 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8531
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8531#FFFFFF#000000##000000
##9D85311.003.605.835.83
#FFFFFF3.601.0021.0021.00
#0000005.8321.001.001.00
##0000005.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#938326
Deuteranopia (green-blind)
#998A35
Tritanopia (blue-blind)
#AA7B74
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #9d8531;
/* rgb */ color: rgb(157, 133, 49);
/* oklch */ color: oklch(62.3% 0.106 93.0);
Tailwind
colors: {
  custom: {
    50: '#bda86e',
    500: '#9d8531',
    950: '#000000',
  },
}
SCSS
$custom: #9d8531;
$custom-light: #bda86e;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8531",
  "rgb": {
    "r": 157,
    "g": 133,
    "b": 49
  },
  "hsl": {
    "h": 46.667,
    "s": 52.427,
    "l": 40.392
  },
  "oklch": {
    "l": 0.62276,
    "c": 0.10597,
    "h": 93
  },
  "luminance": 0.24165
}

Semantic roles & 50–950 ramp

primary
#9D8531
secondary
#6E7FBC
accent
#6CDC4C
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#120F07
muted
#817F7A

Preview Lab

Preview with #9D8531

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

Preview Lab → · Contrast checker → · Palette generator →

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