#9D8E2A#9D8E2A

#9D8E2A is a light, moderate yellow. Relative luminance 0.267; OKLCH L 64.2% C 0.118 H 100.5°. Best body text is #000000 at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#9D8E2A
RGBrgb(157, 142, 42)
HSLhsl(52, 58%, 39%)
HSVhsv(52, 73%, 62%)
CMYKcmyk(0%, 9.6%, 73.2%, 38.4%)
CIE-LABlab(58.68, -5.88, 52.33)
CIE-LCHlch(58.68, 52.66, 96.41°)
OKLaboklab(64.18% -0.0215 0.1159)
OKLCHoklch(64.18% 0.118 100.5)
XYZxyz(23.9967, 26.6824, 6.0763)
Luminance0.2668 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8E2A #2A399D
analogous
#9D552A #9D8E2A #739D2A
triadic
#9D8E2A #2A9D8E #8E2A9D
tetradic
#9D8E2A #2A9D55 #2A399D #9D2A73
square
#9D8E2A #2A9D55 #2A399D #9D2A73
split-complementary
#9D8E2A #2A739D #552A9D
monochromatic
#3C3710 #6D621D #9D8E2A #CAB73A #D7C96A

Accessibility & contrast

On white

3.31
#9D8E2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.34
#9D8E2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8E2A
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8E2A#FFFFFF#000000##000000
##9D8E2A1.003.316.346.34
#FFFFFF3.311.0021.0021.00
#0000006.3421.001.001.00
##0000006.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8A1A
Deuteranopia (green-blind)
#A09030
Tritanopia (blue-blind)
#A9837A
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9d8e2a;
/* rgb */ color: rgb(157, 142, 42);
/* oklch */ color: oklch(64.2% 0.118 100.5);
Tailwind
colors: {
  custom: {
    50: '#bdae6b',
    500: '#9d8e2a',
    950: '#000000',
  },
}
SCSS
$custom: #9d8e2a;
$custom-light: #bdae6b;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8e2a",
  "rgb": {
    "r": 157,
    "g": 142,
    "b": 42
  },
  "hsl": {
    "h": 52.174,
    "s": 57.789,
    "l": 39.02
  },
  "oklch": {
    "l": 0.64179,
    "c": 0.1179,
    "h": 100.5
  },
  "luminance": 0.26681
}

Semantic roles & 50–950 ramp

primary
#9D8E2A
secondary
#6571BE
accent
#5BE147
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131007
muted
#827F7A

Preview Lab

Preview with #9D8E2A

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

Preview Lab → · Contrast checker → · Palette generator →

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