#9D8320#9D8320

#9D8320 is a mid, moderate yellow. Relative luminance 0.235; OKLCH L 61.7% C 0.116 H 93.3°. Best body text is #000000 at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#9D8320
RGBrgb(157, 131, 32)
HSLhsl(48, 66%, 37%)
HSVhsv(48, 80%, 62%)
CMYKcmyk(0%, 16.6%, 79.6%, 38.4%)
CIE-LABlab(55.59, -0.27, 53.13)
CIE-LCHlch(55.59, 53.13, 90.29°)
OKLaboklab(61.71% -0.0066 0.1156)
OKLCHoklch(61.71% 0.116 93.3)
XYZxyz(22.2829, 23.5063, 4.7297)
Luminance0.2351 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8320 #203A9D
analogous
#9D4520 #9D8320 #799D20
triadic
#9D8320 #209D83 #83209D
tetradic
#9D8320 #209D45 #203A9D #9D2079
square
#9D8320 #209D45 #203A9D #9D2079
split-complementary
#9D8320 #20799D #45209D
monochromatic
#372E0B #6A5916 #9D8320 #D0AD2A #DDC25A

Accessibility & contrast

On white

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

On black

5.70
#9D8320 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8320
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8320#FFFFFF#000000##000000
##9D83201.003.685.705.70
#FFFFFF3.681.0021.0021.00
#0000005.7021.001.001.00
##0000005.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#92810A
Deuteranopia (green-blind)
#988826
Tritanopia (blue-blind)
#AA7870
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #9d8320;
/* rgb */ color: rgb(157, 131, 32);
/* oklch */ color: oklch(61.7% 0.116 93.3);
Tailwind
colors: {
  custom: {
    50: '#bea664',
    500: '#9d8320',
    950: '#000000',
  },
}
SCSS
$custom: #9d8320;
$custom-light: #bea664;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8320",
  "rgb": {
    "r": 157,
    "g": 131,
    "b": 32
  },
  "hsl": {
    "h": 47.52,
    "s": 66.138,
    "l": 37.059
  },
  "oklch": {
    "l": 0.61714,
    "c": 0.11576,
    "h": 93.3
  },
  "luminance": 0.23505
}

Semantic roles & 50–950 ramp

primary
#9D8320
secondary
#576DC1
accent
#62E93F
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9D8320

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

Preview Lab → · Contrast checker → · Palette generator →

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