#9D8F22#9D8F22

#9D8F22 is a light, vivid yellow. Relative luminance 0.269; OKLCH L 64.3% C 0.124 H 101.6°. Best body text is #000000 at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#9D8F22
RGBrgb(157, 143, 34)
HSLhsl(53, 64%, 37%)
HSVhsv(53, 78%, 62%)
CMYKcmyk(0%, 8.9%, 78.3%, 38.4%)
CIE-LABlab(58.91, -6.78, 55.47)
CIE-LCHlch(58.91, 55.88, 96.97°)
OKLaboklab(64.35% -0.0249 0.121)
OKLCHoklch(64.35% 0.124 101.6)
XYZxyz(24.0170, 26.9296, 5.4459)
Luminance0.2693 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8F22 #22309D
analogous
#9D5222 #9D8F22 #6D9D22
triadic
#9D8F22 #229D8F #8F229D
tetradic
#9D8F22 #229D52 #22309D #9D226D
square
#9D8F22 #229D52 #22309D #9D226D
split-complementary
#9D8F22 #226D9D #52229D
monochromatic
#38330C #6B6117 #9D8F22 #CFBD2D #DCCE5D

Accessibility & contrast

On white

3.29
#9D8F22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.39
#9D8F22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8F22
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8F22#FFFFFF#000000##000000
##9D8F221.003.296.396.39
#FFFFFF3.291.0021.0021.00
#0000006.3921.001.001.00
##0000006.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8B08
Deuteranopia (green-blind)
#A1902A
Tritanopia (blue-blind)
#AA847B
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #9d8f22;
/* rgb */ color: rgb(157, 143, 34);
/* oklch */ color: oklch(64.3% 0.124 101.6);
Tailwind
colors: {
  custom: {
    50: '#beaf67',
    500: '#9d8f22',
    950: '#000000',
  },
}
SCSS
$custom: #9d8f22;
$custom-light: #beaf67;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8f22",
  "rgb": {
    "r": 157,
    "g": 143,
    "b": 34
  },
  "hsl": {
    "h": 53.171,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.64346,
    "c": 0.12353,
    "h": 101.6
  },
  "luminance": 0.26929
}

Semantic roles & 50–950 ramp

primary
#9D8F22
secondary
#5A66C1
accent
#53E740
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9D8F22

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

Preview Lab → · Contrast checker → · Palette generator →

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