#9E8D2F#9E8D2F

#9E8D2F is a light, moderate yellow. Relative luminance 0.265; OKLCH L 64.1% C 0.114 H 98.8°. Best body text is #000000 at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#9E8D2F
RGBrgb(158, 141, 47)
HSLhsl(51, 54%, 40%)
HSVhsv(51, 70%, 62%)
CMYKcmyk(0%, 10.8%, 70.3%, 38%)
CIE-LABlab(58.53, -4.62, 50.19)
CIE-LCHlch(58.53, 50.40, 95.26°)
OKLaboklab(64.1% -0.0174 0.1123)
OKLCHoklch(64.1% 0.114 98.8)
XYZxyz(24.1396, 26.5252, 6.5371)
Luminance0.2652 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8D2F #2F409E
analogous
#9E562F #9E8D2F #779E2F
triadic
#9E8D2F #2F9E8D #8D2F9E
tetradic
#9E8D2F #2F9E56 #2F409E #9E2F77
square
#9E8D2F #2F9E56 #2F409E #9E2F77
split-complementary
#9E8D2F #2F779E #562F9E
monochromatic
#403913 #6F6321 #9E8D2F #C7B343 #D5C672

Accessibility & contrast

On white

3.33
#9E8D2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.30
#9E8D2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E8D2F
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E8D2F#FFFFFF#000000##000000
##9E8D2F1.003.336.306.30
#FFFFFF3.331.0021.0021.00
#0000006.3021.001.001.00
##0000006.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8922
Deuteranopia (green-blind)
#9F8F34
Tritanopia (blue-blind)
#AA837A
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9e8d2f;
/* rgb */ color: rgb(158, 141, 47);
/* oklch */ color: oklch(64.1% 0.114 98.8);
Tailwind
colors: {
  custom: {
    50: '#beae6d',
    500: '#9e8d2f',
    950: '#000000',
  },
}
SCSS
$custom: #9e8d2f;
$custom-light: #beae6d;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8d2f",
  "rgb": {
    "r": 158,
    "g": 141,
    "b": 47
  },
  "hsl": {
    "h": 50.811,
    "s": 54.146,
    "l": 40.196
  },
  "oklch": {
    "l": 0.64096,
    "c": 0.11363,
    "h": 98.8
  },
  "luminance": 0.26524
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9E8D2F

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

Preview Lab → · Contrast checker → · Palette generator →

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