#9E8B2F#9E8B2F

#9E8B2F is a light, moderate yellow. Relative luminance 0.259; OKLCH L 63.7% C 0.112 H 97.3°. Best body text is #000000 at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#9E8B2F
RGBrgb(158, 139, 47)
HSLhsl(50, 54%, 40%)
HSVhsv(50, 70%, 62%)
CMYKcmyk(0%, 12%, 70.3%, 38%)
CIE-LABlab(57.98, -3.52, 49.63)
CIE-LCHlch(57.98, 49.76, 94.06°)
OKLaboklab(63.66% -0.0143 0.1111)
OKLCHoklch(63.66% 0.112 97.3)
XYZxyz(23.8474, 25.9408, 6.4397)
Luminance0.2594 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8B2F #2F429E
analogous
#9E542F #9E8B2F #799E2F
triadic
#9E8B2F #2F9E8B #8B2F9E
tetradic
#9E8B2F #2F9E54 #2F429E #9E2F79
square
#9E8B2F #2F9E54 #2F429E #9E2F79
split-complementary
#9E8B2F #2F799E #542F9E
monochromatic
#403813 #6F6221 #9E8B2F #C7B143 #D5C472

Accessibility & contrast

On white

3.39
#9E8B2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.19
#9E8B2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E8B2F
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E8B2F#FFFFFF#000000##000000
##9E8B2F1.003.396.196.19
#FFFFFF3.391.0021.0021.00
#0000006.1921.001.001.00
##0000006.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#998822
Deuteranopia (green-blind)
#9E8E34
Tritanopia (blue-blind)
#AA8178
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9e8b2f;
/* rgb */ color: rgb(158, 139, 47);
/* oklch */ color: oklch(63.7% 0.112 97.3);
Tailwind
colors: {
  custom: {
    50: '#beac6d',
    500: '#9e8b2f',
    950: '#000000',
  },
}
SCSS
$custom: #9e8b2f;
$custom-light: #beac6d;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8b2f",
  "rgb": {
    "r": 158,
    "g": 139,
    "b": 47
  },
  "hsl": {
    "h": 49.73,
    "s": 54.146,
    "l": 40.196
  },
  "oklch": {
    "l": 0.63659,
    "c": 0.11202,
    "h": 97.3
  },
  "luminance": 0.2594
}

Semantic roles & 50–950 ramp

primary
#9E8B2F
secondary
#6C7ABD
accent
#63DE4A
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#131007
muted
#827F7A

Preview Lab

Preview with #9E8B2F

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

Preview Lab → · Contrast checker → · Palette generator →

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