#9E8E2A#9E8E2A

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

Color values

HEX#9E8E2A
RGBrgb(158, 142, 42)
HSLhsl(52, 58%, 39%)
HSVhsv(52, 73%, 62%)
CMYKcmyk(0%, 10.1%, 73.4%, 38%)
CIE-LABlab(58.77, -5.43, 52.45)
CIE-LCHlch(58.77, 52.73, 95.91°)
OKLaboklab(64.28% -0.0203 0.1161)
OKLCHoklch(64.28% 0.118 99.9)
XYZxyz(24.1926, 26.7834, 6.0854)
Luminance0.2678 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8E2A #2A3A9E
analogous
#9E542A #9E8E2A #749E2A
triadic
#9E8E2A #2A9E8E #8E2A9E
tetradic
#9E8E2A #2A9E54 #2A3A9E #9E2A74
square
#9E8E2A #2A9E54 #2A3A9E #9E2A74
split-complementary
#9E8E2A #2A749E #542A9E
monochromatic
#3D3710 #6E631D #9E8E2A #CBB73A #D8C96B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9E8E2A#FFFFFF#000000##000000
##9E8E2A1.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)
#9C8A19
Deuteranopia (green-blind)
#A09030
Tritanopia (blue-blind)
#AA837A
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9e8e2a;
/* rgb */ color: rgb(158, 142, 42);
/* oklch */ color: oklch(64.3% 0.118 99.9);
Tailwind
colors: {
  custom: {
    50: '#beae6b',
    500: '#9e8e2a',
    950: '#000000',
  },
}
SCSS
$custom: #9e8e2a;
$custom-light: #beae6b;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8e2a",
  "rgb": {
    "r": 158,
    "g": 142,
    "b": 42
  },
  "hsl": {
    "h": 51.724,
    "s": 58,
    "l": 39.216
  },
  "oklch": {
    "l": 0.64276,
    "c": 0.1179,
    "h": 99.9
  },
  "luminance": 0.26782
}

Semantic roles & 50–950 ramp

primary
#9E8E2A
secondary
#6672BE
accent
#5CE147
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131007
muted
#827F7A

Preview Lab

Preview with #9E8E2A

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

Preview Lab → · Contrast checker → · Palette generator →

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