#9E8D2D#9E8D2D

#9E8D2D is a light, moderate yellow. Relative luminance 0.265; OKLCH L 64.1% C 0.115 H 99.0°. Best body text is #000000 at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#9E8D2D
RGBrgb(158, 141, 45)
HSLhsl(51, 56%, 40%)
HSVhsv(51, 72%, 62%)
CMYKcmyk(0%, 10.8%, 71.5%, 38%)
CIE-LABlab(58.52, -4.73, 51.00)
CIE-LCHlch(58.52, 51.22, 95.30°)
OKLaboklab(64.08% -0.018 0.1136)
OKLCHoklch(64.08% 0.115 99)
XYZxyz(24.1002, 26.5095, 6.3295)
Luminance0.2651 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8D2D #2D3E9E
analogous
#9E542D #9E8D2D #779E2D
triadic
#9E8D2D #2D9E8D #8D2D9E
tetradic
#9E8D2D #2D9E54 #2D3E9E #9E2D77
square
#9E8D2D #2D9E54 #2D3E9E #9E2D77
split-complementary
#9E8D2D #2D779E #542D9E
monochromatic
#3F3812 #6E621F #9E8D2D #C9B440 #D6C76F

Accessibility & contrast

On white

3.33
#9E8D2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.30
#9E8D2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E8D2D
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E8D2D#FFFFFF#000000##000000
##9E8D2D1.003.336.306.30
#FFFFFF3.331.0021.0021.00
#0000006.3021.001.001.00
##0000006.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B891F
Deuteranopia (green-blind)
#9F8F33
Tritanopia (blue-blind)
#AA827A
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9e8d2d;
/* rgb */ color: rgb(158, 141, 45);
/* oklch */ color: oklch(64.1% 0.115 99.0);
Tailwind
colors: {
  custom: {
    50: '#beae6c',
    500: '#9e8d2d',
    950: '#000000',
  },
}
SCSS
$custom: #9e8d2d;
$custom-light: #beae6c;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8d2d",
  "rgb": {
    "r": 158,
    "g": 141,
    "b": 45
  },
  "hsl": {
    "h": 50.973,
    "s": 55.665,
    "l": 39.804
  },
  "oklch": {
    "l": 0.6408,
    "c": 0.11505,
    "h": 99
  },
  "luminance": 0.26508
}

Semantic roles & 50–950 ramp

primary
#9E8D2D
secondary
#6976BD
accent
#5FDF49
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#131007
muted
#827F7A

Preview Lab

Preview with #9E8D2D

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

Preview Lab → · Contrast checker → · Palette generator →

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