#9E8D2A#9E8D2A

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

Color values

HEX#9E8D2A
RGBrgb(158, 141, 42)
HSLhsl(51, 58%, 39%)
HSVhsv(51, 73%, 62%)
CMYKcmyk(0%, 10.8%, 73.4%, 38%)
CIE-LABlab(58.50, -4.88, 52.18)
CIE-LCHlch(58.50, 52.41, 95.34°)
OKLaboklab(64.06% -0.0187 0.1156)
OKLCHoklch(64.06% 0.117 99.2)
XYZxyz(24.0445, 26.4872, 6.0361)
Luminance0.2649 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8D2A #2A3B9E
analogous
#9E532A #9E8D2A #759E2A
triadic
#9E8D2A #2A9E8D #8D2A9E
tetradic
#9E8D2A #2A9E53 #2A3B9E #9E2A75
square
#9E8D2A #2A9E53 #2A3B9E #9E2A75
split-complementary
#9E8D2A #2A759E #532A9E
monochromatic
#3D3710 #6E621D #9E8D2A #CBB63A #D8C86B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9E8D2A#FFFFFF#000000##000000
##9E8D2A1.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)
#9B891A
Deuteranopia (green-blind)
#A08F30
Tritanopia (blue-blind)
#AB8279
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9e8d2a;
/* rgb */ color: rgb(158, 141, 42);
/* oklch */ color: oklch(64.1% 0.117 99.2);
Tailwind
colors: {
  custom: {
    50: '#beae6a',
    500: '#9e8d2a',
    950: '#000000',
  },
}
SCSS
$custom: #9e8d2a;
$custom-light: #beae6a;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8d2a",
  "rgb": {
    "r": 158,
    "g": 141,
    "b": 42
  },
  "hsl": {
    "h": 51.207,
    "s": 58,
    "l": 39.216
  },
  "oklch": {
    "l": 0.64057,
    "c": 0.11708,
    "h": 99.2
  },
  "luminance": 0.26486
}

Semantic roles & 50–950 ramp

primary
#9E8D2A
secondary
#6673BE
accent
#5DE147
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131007
muted
#827F7A

Preview Lab

Preview with #9E8D2A

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

Preview Lab → · Contrast checker → · Palette generator →

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