#9E8B2A#9E8B2A

#9E8B2A is a light, moderate yellow. Relative luminance 0.259; OKLCH L 63.6% C 0.115 H 97.8°. Best body text is #000000 at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#9E8B2A
RGBrgb(158, 139, 42)
HSLhsl(50, 58%, 39%)
HSVhsv(50, 73%, 62%)
CMYKcmyk(0%, 12%, 73.4%, 38%)
CIE-LABlab(57.94, -3.79, 51.64)
CIE-LCHlch(57.94, 51.78, 94.20°)
OKLaboklab(63.62% -0.0156 0.1144)
OKLCHoklch(63.62% 0.115 97.8)
XYZxyz(23.7523, 25.9027, 5.9387)
Luminance0.2590 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8B2A #2A3D9E
analogous
#9E512A #9E8B2A #779E2A
triadic
#9E8B2A #2A9E8B #8B2A9E
tetradic
#9E8B2A #2A9E51 #2A3D9E #9E2A77
square
#9E8B2A #2A9E51 #2A3D9E #9E2A77
split-complementary
#9E8B2A #2A779E #512A9E
monochromatic
#3D3610 #6E601D #9E8B2A #CBB33A #D8C66B

Accessibility & contrast

On white

3.40
#9E8B2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.18
#9E8B2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E8B2A
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E8B2A#FFFFFF#000000##000000
##9E8B2A1.003.406.186.18
#FFFFFF3.401.0021.0021.00
#0000006.1821.001.001.00
##0000006.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#99881A
Deuteranopia (green-blind)
#9E8E30
Tritanopia (blue-blind)
#AB8078
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9e8b2a;
/* rgb */ color: rgb(158, 139, 42);
/* oklch */ color: oklch(63.6% 0.115 97.8);
Tailwind
colors: {
  custom: {
    50: '#beac6a',
    500: '#9e8b2a',
    950: '#000000',
  },
}
SCSS
$custom: #9e8b2a;
$custom-light: #beac6a;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8b2a",
  "rgb": {
    "r": 158,
    "g": 139,
    "b": 42
  },
  "hsl": {
    "h": 50.172,
    "s": 58,
    "l": 39.216
  },
  "oklch": {
    "l": 0.63619,
    "c": 0.11549,
    "h": 97.8
  },
  "luminance": 0.25902
}

Semantic roles & 50–950 ramp

primary
#9E8B2A
secondary
#6674BE
accent
#60E147
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131007
muted
#827F7A

Preview Lab

Preview with #9E8B2A

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

Preview Lab → · Contrast checker → · Palette generator →

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