#9E8E2D#9E8E2D

#9E8E2D is a light, moderate yellow. Relative luminance 0.268; OKLCH L 64.3% C 0.116 H 99.7°. Best body text is #000000 at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#9E8E2D
RGBrgb(158, 142, 45)
HSLhsl(52, 56%, 40%)
HSVhsv(52, 72%, 62%)
CMYKcmyk(0%, 10.1%, 71.5%, 38%)
CIE-LABlab(58.79, -5.27, 51.28)
CIE-LCHlch(58.79, 51.55, 95.87°)
OKLaboklab(64.3% -0.0195 0.1142)
OKLCHoklch(64.3% 0.116 99.7)
XYZxyz(24.2483, 26.8057, 6.3789)
Luminance0.2681 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8E2D #2D3D9E
analogous
#9E552D #9E8E2D #769E2D
triadic
#9E8E2D #2D9E8E #8E2D9E
tetradic
#9E8E2D #2D9E55 #2D3D9E #9E2D76
square
#9E8E2D #2D9E55 #2D3D9E #9E2D76
split-complementary
#9E8E2D #2D769E #552D9E
monochromatic
#3F3812 #6E631F #9E8E2D #C9B540 #D6C86F

Accessibility & contrast

On white

3.30
#9E8E2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.36
#9E8E2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E8E2D
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E8E2D#FFFFFF#000000##000000
##9E8E2D1.003.306.366.36
#FFFFFF3.301.0021.0021.00
#0000006.3621.001.001.00
##0000006.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8A1E
Deuteranopia (green-blind)
#A09033
Tritanopia (blue-blind)
#AA837B
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9e8e2d;
/* rgb */ color: rgb(158, 142, 45);
/* oklch */ color: oklch(64.3% 0.116 99.7);
Tailwind
colors: {
  custom: {
    50: '#beae6c',
    500: '#9e8e2d',
    950: '#000000',
  },
}
SCSS
$custom: #9e8e2d;
$custom-light: #beae6c;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8e2d",
  "rgb": {
    "r": 158,
    "g": 142,
    "b": 45
  },
  "hsl": {
    "h": 51.504,
    "s": 55.665,
    "l": 39.804
  },
  "oklch": {
    "l": 0.64299,
    "c": 0.11588,
    "h": 99.7
  },
  "luminance": 0.26805
}

Semantic roles & 50–950 ramp

primary
#9E8E2D
secondary
#6975BD
accent
#5EDF49
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#131007
muted
#827F7A

Preview Lab

Preview with #9E8E2D

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

Preview Lab → · Contrast checker → · Palette generator →

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