#9E8A42#9E8A42

#9E8A42 is a light, moderate yellow. Relative luminance 0.258; OKLCH L 63.6% C 0.095 H 94.0°. Best body text is #000000 at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#9E8A42
RGBrgb(158, 138, 66)
HSLhsl(47, 41%, 44%)
HSVhsv(47, 58%, 62%)
CMYKcmyk(0%, 12.7%, 58.2%, 38%)
CIE-LABlab(57.89, -1.68, 40.70)
CIE-LCHlch(57.89, 40.73, 92.37°)
OKLaboklab(63.64% -0.0067 0.0949)
OKLCHoklch(63.64% 0.095 94)
XYZxyz(24.1734, 25.8405, 8.8676)
Luminance0.2584 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8A42 #42569E
analogous
#9E5C42 #9E8A42 #849E42
triadic
#9E8A42 #429E8A #8A429E
tetradic
#9E8A42 #429E5C #42569E #9E4284
square
#9E8A42 #429E5C #42569E #9E4284
split-complementary
#9E8A42 #42849E #5C429E
monochromatic
#483F1E #736430 #9E8A42 #BDA960 #CFC08C

Accessibility & contrast

On white

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

On black

6.17
#9E8A42 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E8A42
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E8A42#FFFFFF#000000##000000
##9E8A421.003.406.176.17
#FFFFFF3.401.0021.0021.00
#0000006.1721.001.001.00
##0000006.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#97883B
Deuteranopia (green-blind)
#9C8E45
Tritanopia (blue-blind)
#AA817A
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9e8a42;
/* rgb */ color: rgb(158, 138, 66);
/* oklch */ color: oklch(63.6% 0.095 94.0);
Tailwind
colors: {
  custom: {
    50: '#bdab79',
    500: '#9e8a42',
    950: '#000000',
  },
}
SCSS
$custom: #9e8a42;
$custom-light: #bdab79;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8a42",
  "rgb": {
    "r": 158,
    "g": 138,
    "b": 66
  },
  "hsl": {
    "h": 46.957,
    "s": 41.071,
    "l": 43.922
  },
  "oklch": {
    "l": 0.63641,
    "c": 0.09517,
    "h": 94
  },
  "luminance": 0.25839
}

Semantic roles & 50–950 ramp

primary
#9E8A42
secondary
#828EBA
accent
#71D157
background
#FBFAF7
surface
#F7F4ED
border
#D0CEC8
text
#121009
muted
#817F7B

Preview Lab

Preview with #9E8A42

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

Preview Lab → · Contrast checker → · Palette generator →

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