#9D8321#9D8321

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

Color values

HEX#9D8321
RGBrgb(157, 131, 33)
HSLhsl(47, 65%, 37%)
HSVhsv(47, 79%, 62%)
CMYKcmyk(0%, 16.6%, 79%, 38.4%)
CIE-LABlab(55.60, -0.23, 52.78)
CIE-LCHlch(55.60, 52.78, 90.25°)
OKLaboklab(61.72% -0.0064 0.115)
OKLCHoklch(61.72% 0.115 93.2)
XYZxyz(22.2967, 23.5118, 4.8024)
Luminance0.2351 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8321 #213B9D
analogous
#9D4521 #9D8321 #799D21
triadic
#9D8321 #219D83 #83219D
tetradic
#9D8321 #219D45 #213B9D #9D2179
square
#9D8321 #219D45 #213B9D #9D2179
split-complementary
#9D8321 #21799D #45219D
monochromatic
#382F0C #6A5916 #9D8321 #D0AD2C #DDC25C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D8321#FFFFFF#000000##000000
##9D83211.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)
#92810C
Deuteranopia (green-blind)
#988827
Tritanopia (blue-blind)
#AA7870
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #9d8321;
/* rgb */ color: rgb(157, 131, 33);
/* oklch */ color: oklch(61.7% 0.115 93.2);
Tailwind
colors: {
  custom: {
    50: '#bea665',
    500: '#9d8321',
    950: '#000000',
  },
}
SCSS
$custom: #9d8321;
$custom-light: #bea665;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8321",
  "rgb": {
    "r": 157,
    "g": 131,
    "b": 33
  },
  "hsl": {
    "h": 47.419,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.6172,
    "c": 0.11522,
    "h": 93.2
  },
  "luminance": 0.23511
}

Semantic roles & 50–950 ramp

primary
#9D8321
secondary
#596FC1
accent
#63E840
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9D8321

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

Preview Lab → · Contrast checker → · Palette generator →

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