#9D8E2D#9D8E2D

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

Color values

HEX#9D8E2D
RGBrgb(157, 142, 45)
HSLhsl(52, 55%, 40%)
HSVhsv(52, 71%, 62%)
CMYKcmyk(0%, 9.6%, 71.3%, 38.4%)
CIE-LABlab(58.70, -5.72, 51.15)
CIE-LCHlch(58.70, 51.47, 96.38°)
OKLaboklab(64.2% -0.0207 0.114)
OKLCHoklch(64.2% 0.116 100.3)
XYZxyz(24.0524, 26.7047, 6.3697)
Luminance0.2670 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8E2D #2D3C9D
analogous
#9D562D #9D8E2D #749D2D
triadic
#9D8E2D #2D9D8E #8E2D9D
tetradic
#9D8E2D #2D9D56 #2D3C9D #9D2D74
square
#9D8E2D #2D9D56 #2D3C9D #9D2D74
split-complementary
#9D8E2D #2D749D #562D9D
monochromatic
#3E3812 #6D631F #9D8E2D #C8B63F #D6C86F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D8E2D#FFFFFF#000000##000000
##9D8E2D1.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)
#9C8A1E
Deuteranopia (green-blind)
#A09033
Tritanopia (blue-blind)
#A9847B
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9d8e2d;
/* rgb */ color: rgb(157, 142, 45);
/* oklch */ color: oklch(64.2% 0.116 100.3);
Tailwind
colors: {
  custom: {
    50: '#bdae6c',
    500: '#9d8e2d',
    950: '#000000',
  },
}
SCSS
$custom: #9d8e2d;
$custom-light: #bdae6c;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8e2d",
  "rgb": {
    "r": 157,
    "g": 142,
    "b": 45
  },
  "hsl": {
    "h": 51.964,
    "s": 55.446,
    "l": 39.608
  },
  "oklch": {
    "l": 0.64202,
    "c": 0.11586,
    "h": 100.3
  },
  "luminance": 0.26704
}

Semantic roles & 50–950 ramp

primary
#9D8E2D
secondary
#6974BD
accent
#5DDF49
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #9D8E2D

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

Preview Lab → · Contrast checker → · Palette generator →

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