#9E8E2E#9E8E2E

#9E8E2E is a light, moderate yellow. Relative luminance 0.268; OKLCH L 64.3% C 0.115 H 99.6°. Best body text is #000000 at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#9E8E2E
RGBrgb(158, 142, 46)
HSLhsl(51, 55%, 40%)
HSVhsv(51, 71%, 62%)
CMYKcmyk(0%, 10.1%, 70.9%, 38%)
CIE-LABlab(58.80, -5.22, 50.88)
CIE-LCHlch(58.80, 51.14, 95.86°)
OKLaboklab(64.31% -0.0192 0.1136)
OKLCHoklch(64.31% 0.115 99.6)
XYZxyz(24.2678, 26.8135, 6.4815)
Luminance0.2681 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8E2E #2E3E9E
analogous
#9E562E #9E8E2E #769E2E
triadic
#9E8E2E #2E9E8E #8E2E9E
tetradic
#9E8E2E #2E9E56 #2E3E9E #9E2E76
square
#9E8E2E #2E9E56 #2E3E9E #9E2E76
split-complementary
#9E8E2E #2E769E #562E9E
monochromatic
#3F3912 #6F6320 #9E8E2E #C8B541 #D6C771

Accessibility & contrast

On white

3.30
#9E8E2E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.36
#9E8E2E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E8E2E
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E8E2E#FFFFFF#000000##000000
##9E8E2E1.003.306.366.36
#FFFFFF3.301.0021.0021.00
#0000006.3621.001.001.00
##0000006.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8A20
Deuteranopia (green-blind)
#A09034
Tritanopia (blue-blind)
#AA847B
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9e8e2e;
/* rgb */ color: rgb(158, 142, 46);
/* oklch */ color: oklch(64.3% 0.115 99.6);
Tailwind
colors: {
  custom: {
    50: '#beae6d',
    500: '#9e8e2e',
    950: '#000000',
  },
}
SCSS
$custom: #9e8e2e;
$custom-light: #beae6d;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8e2e",
  "rgb": {
    "r": 158,
    "g": 142,
    "b": 46
  },
  "hsl": {
    "h": 51.429,
    "s": 54.902,
    "l": 40
  },
  "oklch": {
    "l": 0.64307,
    "c": 0.11518,
    "h": 99.6
  },
  "luminance": 0.26812
}

Semantic roles & 50–950 ramp

primary
#9E8E2E
secondary
#6B76BD
accent
#5FDE4A
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#131007
muted
#827F7A

Preview Lab

Preview with #9E8E2E

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

Preview Lab → · Contrast checker → · Palette generator →

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