#9E8F2D#9E8F2D

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

Color values

HEX#9E8F2D
RGBrgb(158, 143, 45)
HSLhsl(52, 56%, 40%)
HSVhsv(52, 72%, 62%)
CMYKcmyk(0%, 9.5%, 71.5%, 38%)
CIE-LABlab(59.07, -5.82, 51.55)
CIE-LCHlch(59.07, 51.88, 96.44°)
OKLaboklab(64.52% -0.0211 0.1148)
OKLCHoklch(64.52% 0.117 100.4)
XYZxyz(24.3978, 27.1046, 6.4287)
Luminance0.2710 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8F2D #2D3C9E
analogous
#9E562D #9E8F2D #759E2D
triadic
#9E8F2D #2D9E8F #8F2D9E
tetradic
#9E8F2D #2D9E56 #2D3C9E #9E2D75
square
#9E8F2D #2D9E56 #2D3C9E #9E2D75
split-complementary
#9E8F2D #2D759E #562D9E
monochromatic
#3F3912 #6E641F #9E8F2D #C9B640 #D6C86F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9E8F2D#FFFFFF#000000##000000
##9E8F2D1.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)
#9D8B1E
Deuteranopia (green-blind)
#A19133
Tritanopia (blue-blind)
#AA857B
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #9e8f2d;
/* rgb */ color: rgb(158, 143, 45);
/* oklch */ color: oklch(64.5% 0.117 100.4);
Tailwind
colors: {
  custom: {
    50: '#beaf6c',
    500: '#9e8f2d',
    950: '#000000',
  },
}
SCSS
$custom: #9e8f2d;
$custom-light: #beaf6c;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8f2d",
  "rgb": {
    "r": 158,
    "g": 143,
    "b": 45
  },
  "hsl": {
    "h": 52.035,
    "s": 55.665,
    "l": 39.804
  },
  "oklch": {
    "l": 0.64519,
    "c": 0.11673,
    "h": 100.4
  },
  "luminance": 0.27103
}

Semantic roles & 50–950 ramp

primary
#9E8F2D
secondary
#6975BD
accent
#5DDF49
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#131007
muted
#827F7A

Preview Lab

Preview with #9E8F2D

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

Preview Lab → · Contrast checker → · Palette generator →

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