#9E8A2D#9E8A2D

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

Color values

HEX#9E8A2D
RGBrgb(158, 138, 45)
HSLhsl(49, 56%, 40%)
HSVhsv(49, 72%, 62%)
CMYKcmyk(0%, 12.7%, 71.5%, 38%)
CIE-LABlab(57.69, -3.08, 50.17)
CIE-LCHlch(57.69, 50.27, 93.52°)
OKLaboklab(63.43% -0.0133 0.1119)
OKLCHoklch(63.43% 0.113 96.8)
XYZxyz(23.6638, 25.6367, 6.1841)
Luminance0.2564 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8A2D #2D419E
analogous
#9E522D #9E8A2D #799E2D
triadic
#9E8A2D #2D9E8A #8A2D9E
tetradic
#9E8A2D #2D9E52 #2D419E #9E2D79
square
#9E8A2D #2D9E52 #2D419E #9E2D79
split-complementary
#9E8A2D #2D799E #522D9E
monochromatic
#3F3712 #6E601F #9E8A2D #C9B040 #D6C46F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9E8A2D#FFFFFF#000000##000000
##9E8A2D1.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)
#98871F
Deuteranopia (green-blind)
#9D8D32
Tritanopia (blue-blind)
#AB7F77
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9e8a2d;
/* rgb */ color: rgb(158, 138, 45);
/* oklch */ color: oklch(63.4% 0.113 96.8);
Tailwind
colors: {
  custom: {
    50: '#beab6c',
    500: '#9e8a2d',
    950: '#000000',
  },
}
SCSS
$custom: #9e8a2d;
$custom-light: #beab6c;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8a2d",
  "rgb": {
    "r": 158,
    "g": 138,
    "b": 45
  },
  "hsl": {
    "h": 49.381,
    "s": 55.665,
    "l": 39.804
  },
  "oklch": {
    "l": 0.63425,
    "c": 0.11268,
    "h": 96.8
  },
  "luminance": 0.25636
}

Semantic roles & 50–950 ramp

primary
#9E8A2D
secondary
#6978BD
accent
#63DF49
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#131007
muted
#827F7A

Preview Lab

Preview with #9E8A2D

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

Preview Lab → · Contrast checker → · Palette generator →

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