#9D8B22#9D8B22

#9D8B22 is a light, vivid yellow. Relative luminance 0.257; OKLCH L 63.5% C 0.120 H 99.0°. Best body text is #000000 at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#9D8B22
RGBrgb(157, 139, 34)
HSLhsl(51, 64%, 37%)
HSVhsv(51, 78%, 62%)
CMYKcmyk(0%, 11.5%, 78.3%, 38.4%)
CIE-LABlab(57.80, -4.60, 54.45)
CIE-LCHlch(57.80, 54.64, 94.83°)
OKLaboklab(63.47% -0.0187 0.1188)
OKLCHoklch(63.47% 0.12 99)
XYZxyz(23.4272, 25.7500, 5.2493)
Luminance0.2575 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8B22 #22349D
analogous
#9D4E22 #9D8B22 #719D22
triadic
#9D8B22 #229D8B #8B229D
tetradic
#9D8B22 #229D4E #22349D #9D2271
square
#9D8B22 #229D4E #22349D #9D2271
split-complementary
#9D8B22 #22719D #4E229D
monochromatic
#38320C #6B5E17 #9D8B22 #CFB82D #DCC95D

Accessibility & contrast

On white

3.41
#9D8B22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.15
#9D8B22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8B22
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8B22#FFFFFF#000000##000000
##9D8B221.003.416.156.15
#FFFFFF3.411.0021.0021.00
#0000006.1521.001.001.00
##0000006.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#99870A
Deuteranopia (green-blind)
#9E8E29
Tritanopia (blue-blind)
#AA8077
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9d8b22;
/* rgb */ color: rgb(157, 139, 34);
/* oklch */ color: oklch(63.5% 0.120 99.0);
Tailwind
colors: {
  custom: {
    50: '#beac66',
    500: '#9d8b22',
    950: '#000000',
  },
}
SCSS
$custom: #9d8b22;
$custom-light: #beac66;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8b22",
  "rgb": {
    "r": 157,
    "g": 139,
    "b": 34
  },
  "hsl": {
    "h": 51.22,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.63465,
    "c": 0.1203,
    "h": 99
  },
  "luminance": 0.25749
}

Semantic roles & 50–950 ramp

primary
#9D8B22
secondary
#5A69C1
accent
#59E740
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9D8B22

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

Preview Lab → · Contrast checker → · Palette generator →

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