#9D8327#9D8327

#9D8327 is a mid, moderate yellow. Relative luminance 0.235; OKLCH L 61.8% C 0.112 H 92.6°. Best body text is #000000 at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#9D8327
RGBrgb(157, 131, 39)
HSLhsl(47, 60%, 38%)
HSVhsv(47, 75%, 62%)
CMYKcmyk(0%, 16.6%, 75.2%, 38.4%)
CIE-LABlab(55.63, 0.03, 50.55)
CIE-LCHlch(55.63, 50.55, 89.97°)
OKLaboklab(61.76% -0.005 0.1116)
OKLCHoklch(61.76% 0.112 92.6)
XYZxyz(22.3884, 23.5485, 5.2852)
Luminance0.2355 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8327 #27419D
analogous
#9D4827 #9D8327 #7C9D27
triadic
#9D8327 #279D83 #83279D
tetradic
#9D8327 #279D48 #27419D #9D277C
square
#9D8327 #279D48 #27419D #9D277C
split-complementary
#9D8327 #277C9D #48279D
monochromatic
#3B310F #6C5A1B #9D8327 #CDAB35 #D9BF66

Accessibility & contrast

On white

3.68
#9D8327 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.71
#9D8327 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8327
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8327#FFFFFF#000000##000000
##9D83271.003.685.715.71
#FFFFFF3.681.0021.0021.00
#0000005.7121.001.001.00
##0000005.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#928118
Deuteranopia (green-blind)
#98882C
Tritanopia (blue-blind)
#AA7871
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #9d8327;
/* rgb */ color: rgb(157, 131, 39);
/* oklch */ color: oklch(61.8% 0.112 92.6);
Tailwind
colors: {
  custom: {
    50: '#bea668',
    500: '#9d8327',
    950: '#000000',
  },
}
SCSS
$custom: #9d8327;
$custom-light: #bea668;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8327",
  "rgb": {
    "r": 157,
    "g": 131,
    "b": 39
  },
  "hsl": {
    "h": 46.78,
    "s": 60.204,
    "l": 38.431
  },
  "oklch": {
    "l": 0.61761,
    "c": 0.11166,
    "h": 92.6
  },
  "luminance": 0.23547
}

Semantic roles & 50–950 ramp

primary
#9D8327
secondary
#6176BF
accent
#67E344
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9D8327

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

Preview Lab → · Contrast checker → · Palette generator →

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