#9D8322#9D8322

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

Color values

HEX#9D8322
RGBrgb(157, 131, 34)
HSLhsl(47, 64%, 37%)
HSVhsv(47, 78%, 62%)
CMYKcmyk(0%, 16.6%, 78.3%, 38.4%)
CIE-LABlab(55.60, -0.19, 52.42)
CIE-LCHlch(55.60, 52.42, 90.21°)
OKLaboklab(61.73% -0.0062 0.1145)
OKLCHoklch(61.73% 0.115 93.1)
XYZxyz(22.3109, 23.5175, 4.8773)
Luminance0.2352 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8322 #223C9D
analogous
#9D4522 #9D8322 #7A9D22
triadic
#9D8322 #229D83 #83229D
tetradic
#9D8322 #229D45 #223C9D #9D227A
square
#9D8322 #229D45 #223C9D #9D227A
split-complementary
#9D8322 #227A9D #45229D
monochromatic
#382F0C #6B5917 #9D8322 #CFAD2D #DCC15D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D8322#FFFFFF#000000##000000
##9D83221.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)
#92810F
Deuteranopia (green-blind)
#988828
Tritanopia (blue-blind)
#AA7870
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #9d8322;
/* rgb */ color: rgb(157, 131, 34);
/* oklch */ color: oklch(61.7% 0.115 93.1);
Tailwind
colors: {
  custom: {
    50: '#bea665',
    500: '#9d8322',
    950: '#000000',
  },
}
SCSS
$custom: #9d8322;
$custom-light: #bea665;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8322",
  "rgb": {
    "r": 157,
    "g": 131,
    "b": 34
  },
  "hsl": {
    "h": 47.317,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.61726,
    "c": 0.11466,
    "h": 93.1
  },
  "luminance": 0.23516
}

Semantic roles & 50–950 ramp

primary
#9D8322
secondary
#5A70C1
accent
#64E740
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9D8322

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

Preview Lab → · Contrast checker → · Palette generator →

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