#9E8E2F#9E8E2F

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

Color values

HEX#9E8E2F
RGBrgb(158, 142, 47)
HSLhsl(51, 54%, 40%)
HSVhsv(51, 70%, 62%)
CMYKcmyk(0%, 10.1%, 70.3%, 38%)
CIE-LABlab(58.81, -5.16, 50.47)
CIE-LCHlch(58.81, 50.73, 95.84°)
OKLaboklab(64.32% -0.019 0.1129)
OKLCHoklch(64.32% 0.114 99.5)
XYZxyz(24.2877, 26.8215, 6.5865)
Luminance0.2682 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8E2F #2F3F9E
analogous
#9E562F #9E8E2F #779E2F
triadic
#9E8E2F #2F9E8E #8E2F9E
tetradic
#9E8E2F #2F9E56 #2F3F9E #9E2F77
square
#9E8E2F #2F9E56 #2F3F9E #9E2F77
split-complementary
#9E8E2F #2F779E #562F9E
monochromatic
#403913 #6F6421 #9E8E2F #C7B443 #D5C772

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9E8E2F#FFFFFF#000000##000000
##9E8E2F1.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)
#9C8A21
Deuteranopia (green-blind)
#A09035
Tritanopia (blue-blind)
#AA847B
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9e8e2f;
/* rgb */ color: rgb(158, 142, 47);
/* oklch */ color: oklch(64.3% 0.114 99.5);
Tailwind
colors: {
  custom: {
    50: '#beae6d',
    500: '#9e8e2f',
    950: '#000000',
  },
}
SCSS
$custom: #9e8e2f;
$custom-light: #beae6d;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8e2f",
  "rgb": {
    "r": 158,
    "g": 142,
    "b": 47
  },
  "hsl": {
    "h": 51.351,
    "s": 54.146,
    "l": 40.196
  },
  "oklch": {
    "l": 0.64315,
    "c": 0.11446,
    "h": 99.5
  },
  "luminance": 0.2682
}

Semantic roles & 50–950 ramp

primary
#9E8E2F
secondary
#6C78BD
accent
#60DE4A
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#131007
muted
#827F7A

Preview Lab

Preview with #9E8E2F

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

Preview Lab → · Contrast checker → · Palette generator →

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