#9E8A2F#9E8A2F

#9E8A2F is a light, moderate yellow. Relative luminance 0.257; OKLCH L 63.4% C 0.111 H 96.6°. Best body text is #000000 at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#9E8A2F
RGBrgb(158, 138, 47)
HSLhsl(49, 54%, 40%)
HSVhsv(49, 70%, 62%)
CMYKcmyk(0%, 12.7%, 70.3%, 38%)
CIE-LABlab(57.71, -2.98, 49.35)
CIE-LCHlch(57.71, 49.44, 93.45°)
OKLaboklab(63.44% -0.0127 0.1105)
OKLCHoklch(63.44% 0.111 96.6)
XYZxyz(23.7033, 25.6525, 6.3917)
Luminance0.2565 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8A2F #2F439E
analogous
#9E522F #9E8A2F #7A9E2F
triadic
#9E8A2F #2F9E8A #8A2F9E
tetradic
#9E8A2F #2F9E52 #2F439E #9E2F7A
square
#9E8A2F #2F9E52 #2F439E #9E2F7A
split-complementary
#9E8A2F #2F7A9E #522F9E
monochromatic
#403813 #6F6121 #9E8A2F #C7AF43 #D5C372

Accessibility & contrast

On white

3.43
#9E8A2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.13
#9E8A2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E8A2F
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E8A2F#FFFFFF#000000##000000
##9E8A2F1.003.436.136.13
#FFFFFF3.431.0021.0021.00
#0000006.1321.001.001.00
##0000006.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#988722
Deuteranopia (green-blind)
#9D8D34
Tritanopia (blue-blind)
#AB7F77
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9e8a2f;
/* rgb */ color: rgb(158, 138, 47);
/* oklch */ color: oklch(63.4% 0.111 96.6);
Tailwind
colors: {
  custom: {
    50: '#beab6d',
    500: '#9e8a2f',
    950: '#000000',
  },
}
SCSS
$custom: #9e8a2f;
$custom-light: #beab6d;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8a2f",
  "rgb": {
    "r": 158,
    "g": 138,
    "b": 47
  },
  "hsl": {
    "h": 49.189,
    "s": 54.146,
    "l": 40.196
  },
  "oklch": {
    "l": 0.63442,
    "c": 0.11124,
    "h": 96.6
  },
  "luminance": 0.25651
}

Semantic roles & 50–950 ramp

primary
#9E8A2F
secondary
#6C7BBD
accent
#65DE4A
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#131007
muted
#827F7A

Preview Lab

Preview with #9E8A2F

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

Preview Lab → · Contrast checker → · Palette generator →

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