#9D8D22#9D8D22

#9D8D22 is a light, vivid yellow. Relative luminance 0.263; OKLCH L 63.9% C 0.122 H 100.3°. Best body text is #000000 at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#9D8D22
RGBrgb(157, 141, 34)
HSLhsl(52, 64%, 37%)
HSVhsv(52, 78%, 62%)
CMYKcmyk(0%, 10.2%, 78.3%, 38.4%)
CIE-LABlab(58.35, -5.69, 54.96)
CIE-LCHlch(58.35, 55.25, 95.92°)
OKLaboklab(63.91% -0.0218 0.1199)
OKLCHoklch(63.91% 0.122 100.3)
XYZxyz(23.7194, 26.3345, 5.3467)
Luminance0.2633 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8D22 #22329D
analogous
#9D4F22 #9D8D22 #709D22
triadic
#9D8D22 #229D8D #8D229D
tetradic
#9D8D22 #229D4F #22329D #9D2270
square
#9D8D22 #229D4F #22329D #9D2270
split-complementary
#9D8D22 #22709D #4F229D
monochromatic
#38330C #6B6017 #9D8D22 #CFBA2D #DCCC5D

Accessibility & contrast

On white

3.35
#9D8D22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.27
#9D8D22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8D22
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8D22#FFFFFF#000000##000000
##9D8D221.003.356.276.27
#FFFFFF3.351.0021.0021.00
#0000006.2721.001.001.00
##0000006.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8909
Deuteranopia (green-blind)
#A08F2A
Tritanopia (blue-blind)
#AA8279
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #9d8d22;
/* rgb */ color: rgb(157, 141, 34);
/* oklch */ color: oklch(63.9% 0.122 100.3);
Tailwind
colors: {
  custom: {
    50: '#beae66',
    500: '#9d8d22',
    950: '#000000',
  },
}
SCSS
$custom: #9d8d22;
$custom-light: #beae66;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8d22",
  "rgb": {
    "r": 157,
    "g": 141,
    "b": 34
  },
  "hsl": {
    "h": 52.195,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.63905,
    "c": 0.12188,
    "h": 100.3
  },
  "luminance": 0.26333
}

Semantic roles & 50–950 ramp

primary
#9D8D22
secondary
#5A68C1
accent
#56E740
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9D8D22

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

Preview Lab → · Contrast checker → · Palette generator →

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