#9D8422#9D8422

#9D8422 is a mid, moderate yellow. Relative luminance 0.238; OKLCH L 61.9% C 0.115 H 93.9°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#9D8422
RGBrgb(157, 132, 34)
HSLhsl(48, 64%, 37%)
HSVhsv(48, 78%, 62%)
CMYKcmyk(0%, 15.9%, 78.3%, 38.4%)
CIE-LABlab(55.87, -0.75, 52.67)
CIE-LCHlch(55.87, 52.68, 90.81°)
OKLaboklab(61.94% -0.0078 0.115)
OKLCHoklch(61.94% 0.115 93.9)
XYZxyz(22.4459, 23.7874, 4.9222)
Luminance0.2379 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8422 #223B9D
analogous
#9D4722 #9D8422 #789D22
triadic
#9D8422 #229D84 #84229D
tetradic
#9D8422 #229D47 #223B9D #9D2278
square
#9D8422 #229D47 #223B9D #9D2278
split-complementary
#9D8422 #22789D #47229D
monochromatic
#382F0C #6B5A17 #9D8422 #CFAE2D #DCC25D

Accessibility & contrast

On white

3.65
#9D8422 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.76
#9D8422 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8422
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8422#FFFFFF#000000##000000
##9D84221.003.655.765.76
#FFFFFF3.651.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#93820E
Deuteranopia (green-blind)
#998928
Tritanopia (blue-blind)
#AA7971
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #9d8422;
/* rgb */ color: rgb(157, 132, 34);
/* oklch */ color: oklch(61.9% 0.115 93.9);
Tailwind
colors: {
  custom: {
    50: '#bea765',
    500: '#9d8422',
    950: '#000000',
  },
}
SCSS
$custom: #9d8422;
$custom-light: #bea765;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8422",
  "rgb": {
    "r": 157,
    "g": 132,
    "b": 34
  },
  "hsl": {
    "h": 47.805,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.61942,
    "c": 0.11529,
    "h": 93.9
  },
  "luminance": 0.23786
}

Semantic roles & 50–950 ramp

primary
#9D8422
secondary
#5A6FC1
accent
#62E740
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9D8422

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

Preview Lab → · Contrast checker → · Palette generator →

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