#9D8A22#9D8A22

#9D8A22 is a light, moderate yellow. Relative luminance 0.255; OKLCH L 63.2% C 0.120 H 98.3°. Best body text is #000000 at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#9D8A22
RGBrgb(157, 138, 34)
HSLhsl(51, 64%, 37%)
HSVhsv(51, 78%, 62%)
CMYKcmyk(0%, 12.1%, 78.3%, 38.4%)
CIE-LABlab(57.52, -4.06, 54.19)
CIE-LCHlch(57.52, 54.35, 94.28°)
OKLaboklab(63.25% -0.0172 0.1183)
OKLCHoklch(63.25% 0.12 98.3)
XYZxyz(23.2830, 25.4618, 5.2013)
Luminance0.2546 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8A22 #22359D
analogous
#9D4D22 #9D8A22 #729D22
triadic
#9D8A22 #229D8A #8A229D
tetradic
#9D8A22 #229D4D #22359D #9D2272
square
#9D8A22 #229D4D #22359D #9D2272
split-complementary
#9D8A22 #22729D #4D229D
monochromatic
#38320C #6B5E17 #9D8A22 #CFB62D #DCC85D

Accessibility & contrast

On white

3.45
#9D8A22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.09
#9D8A22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8A22
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8A22#FFFFFF#000000##000000
##9D8A221.003.456.096.09
#FFFFFF3.451.0021.0021.00
#0000006.0921.001.001.00
##0000006.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#98860B
Deuteranopia (green-blind)
#9D8D29
Tritanopia (blue-blind)
#AA7F76
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9d8a22;
/* rgb */ color: rgb(157, 138, 34);
/* oklch */ color: oklch(63.2% 0.120 98.3);
Tailwind
colors: {
  custom: {
    50: '#beab66',
    500: '#9d8a22',
    950: '#000000',
  },
}
SCSS
$custom: #9d8a22;
$custom-light: #beab66;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8a22",
  "rgb": {
    "r": 157,
    "g": 138,
    "b": 34
  },
  "hsl": {
    "h": 50.732,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.63246,
    "c": 0.11952,
    "h": 98.3
  },
  "luminance": 0.25461
}

Semantic roles & 50–950 ramp

primary
#9D8A22
secondary
#5A6AC1
accent
#5AE740
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9D8A22

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

Preview Lab → · Contrast checker → · Palette generator →

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