#9D8922#9D8922

#9D8922 is a light, moderate yellow. Relative luminance 0.252; OKLCH L 63.0% C 0.119 H 97.6°. Best body text is #000000 at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#9D8922
RGBrgb(157, 137, 34)
HSLhsl(50, 64%, 37%)
HSVhsv(50, 78%, 62%)
CMYKcmyk(0%, 12.7%, 78.3%, 38.4%)
CIE-LABlab(57.25, -3.51, 53.94)
CIE-LCHlch(57.25, 54.05, 93.72°)
OKLaboklab(63.03% -0.0156 0.1177)
OKLCHoklch(63.03% 0.119 97.6)
XYZxyz(23.1402, 25.1761, 5.1537)
Luminance0.2517 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8922 #22369D
analogous
#9D4C22 #9D8922 #739D22
triadic
#9D8922 #229D89 #89229D
tetradic
#9D8922 #229D4C #22369D #9D2273
square
#9D8922 #229D4C #22369D #9D2273
split-complementary
#9D8922 #22739D #4C229D
monochromatic
#38310C #6B5D17 #9D8922 #CFB52D #DCC75D

Accessibility & contrast

On white

3.48
#9D8922 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.03
#9D8922 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8922
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8922#FFFFFF#000000##000000
##9D89221.003.486.036.03
#FFFFFF3.481.0021.0021.00
#0000006.0321.001.001.00
##0000006.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#97860B
Deuteranopia (green-blind)
#9D8C29
Tritanopia (blue-blind)
#AA7E75
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #9d8922;
/* rgb */ color: rgb(157, 137, 34);
/* oklch */ color: oklch(63.0% 0.119 97.6);
Tailwind
colors: {
  custom: {
    50: '#beab66',
    500: '#9d8922',
    950: '#000000',
  },
}
SCSS
$custom: #9d8922;
$custom-light: #beab66;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8922",
  "rgb": {
    "r": 157,
    "g": 137,
    "b": 34
  },
  "hsl": {
    "h": 50.244,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.63028,
    "c": 0.11877,
    "h": 97.6
  },
  "luminance": 0.25175
}

Semantic roles & 50–950 ramp

primary
#9D8922
secondary
#5A6BC1
accent
#5CE740
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9D8922

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

Preview Lab → · Contrast checker → · Palette generator →

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