#9E8F2A#9E8F2A

#9E8F2A is a light, moderate yellow. Relative luminance 0.271; OKLCH L 64.5% C 0.119 H 100.6°. Best body text is #000000 at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#9E8F2A
RGBrgb(158, 143, 42)
HSLhsl(52, 58%, 39%)
HSVhsv(52, 73%, 62%)
CMYKcmyk(0%, 9.5%, 73.4%, 38%)
CIE-LABlab(59.05, -5.97, 52.72)
CIE-LCHlch(59.05, 53.06, 96.46°)
OKLaboklab(64.5% -0.0218 0.1167)
OKLCHoklch(64.5% 0.119 100.6)
XYZxyz(24.3421, 27.0823, 6.1353)
Luminance0.2708 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8F2A #2A399E
analogous
#9E552A #9E8F2A #739E2A
triadic
#9E8F2A #2A9E8F #8F2A9E
tetradic
#9E8F2A #2A9E55 #2A399E #9E2A73
square
#9E8F2A #2A9E55 #2A399E #9E2A73
split-complementary
#9E8F2A #2A739E #552A9E
monochromatic
#3D3710 #6E631D #9E8F2A #CBB83A #D8CA6B

Accessibility & contrast

On white

3.27
#9E8F2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.42
#9E8F2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E8F2A
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E8F2A#FFFFFF#000000##000000
##9E8F2A1.003.276.426.42
#FFFFFF3.271.0021.0021.00
#0000006.4221.001.001.00
##0000006.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8B19
Deuteranopia (green-blind)
#A19131
Tritanopia (blue-blind)
#AA847B
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #9e8f2a;
/* rgb */ color: rgb(158, 143, 42);
/* oklch */ color: oklch(64.5% 0.119 100.6);
Tailwind
colors: {
  custom: {
    50: '#beaf6b',
    500: '#9e8f2a',
    950: '#000000',
  },
}
SCSS
$custom: #9e8f2a;
$custom-light: #beaf6b;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8f2a",
  "rgb": {
    "r": 158,
    "g": 143,
    "b": 42
  },
  "hsl": {
    "h": 52.241,
    "s": 58,
    "l": 39.216
  },
  "oklch": {
    "l": 0.64496,
    "c": 0.11873,
    "h": 100.6
  },
  "luminance": 0.27081
}

Semantic roles & 50–950 ramp

primary
#9E8F2A
secondary
#6671BE
accent
#5BE147
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131007
muted
#827F7A

Preview Lab

Preview with #9E8F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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