#9D8822#9D8822

#9D8822 is a light, moderate yellow. Relative luminance 0.249; OKLCH L 62.8% C 0.118 H 96.9°. Best body text is #000000 at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#9D8822
RGBrgb(157, 136, 34)
HSLhsl(50, 64%, 37%)
HSVhsv(50, 78%, 62%)
CMYKcmyk(0%, 13.4%, 78.3%, 38.4%)
CIE-LABlab(56.97, -2.96, 53.69)
CIE-LCHlch(56.97, 53.77, 93.15°)
OKLaboklab(62.81% -0.0141 0.1172)
OKLCHoklch(62.81% 0.118 96.9)
XYZxyz(22.9987, 24.8932, 5.1065)
Luminance0.2489 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8822 #22379D
analogous
#9D4A22 #9D8822 #759D22
triadic
#9D8822 #229D88 #88229D
tetradic
#9D8822 #229D4A #22379D #9D2275
square
#9D8822 #229D4A #22379D #9D2275
split-complementary
#9D8822 #22759D #4A229D
monochromatic
#38310C #6B5C17 #9D8822 #CFB42D #DCC65D

Accessibility & contrast

On white

3.51
#9D8822 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.98
#9D8822 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8822
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8822#FFFFFF#000000##000000
##9D88221.003.515.985.98
#FFFFFF3.511.0021.0021.00
#0000005.9821.001.001.00
##0000005.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#96850C
Deuteranopia (green-blind)
#9C8C29
Tritanopia (blue-blind)
#AA7D75
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #9d8822;
/* rgb */ color: rgb(157, 136, 34);
/* oklch */ color: oklch(62.8% 0.118 96.9);
Tailwind
colors: {
  custom: {
    50: '#beaa66',
    500: '#9d8822',
    950: '#000000',
  },
}
SCSS
$custom: #9d8822;
$custom-light: #beaa66;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8822",
  "rgb": {
    "r": 157,
    "g": 136,
    "b": 34
  },
  "hsl": {
    "h": 49.756,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.62809,
    "c": 0.11804,
    "h": 96.9
  },
  "luminance": 0.24892
}

Semantic roles & 50–950 ramp

primary
#9D8822
secondary
#5A6CC1
accent
#5DE740
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9D8822

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

Preview Lab → · Contrast checker → · Palette generator →

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