#9E8E1F#9E8E1F

#9E8E1F is a light, vivid yellow. Relative luminance 0.267; OKLCH L 64.2% C 0.124 H 100.5°. Best body text is #000000 at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#9E8E1F
RGBrgb(158, 142, 31)
HSLhsl(52, 67%, 37%)
HSVhsv(52, 80%, 62%)
CMYKcmyk(0%, 10.1%, 80.4%, 38%)
CIE-LABlab(58.71, -5.90, 56.31)
CIE-LCHlch(58.71, 56.61, 95.98°)
OKLaboklab(64.21% -0.0227 0.1222)
OKLCHoklch(64.21% 0.124 100.5)
XYZxyz(24.0221, 26.7152, 5.1873)
Luminance0.2671 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8E1F #1F2F9E
analogous
#9E4F1F #9E8E1F #6F9E1F
triadic
#9E8E1F #1F9E8E #8E1F9E
tetradic
#9E8E1F #1F9E4F #1F2F9E #9E1F6F
square
#9E8E1F #1F9E4F #1F2F9E #9E1F6F
split-complementary
#9E8E1F #1F6F9E #4F1F9E
monochromatic
#38320B #6B6015 #9E8E1F #D1BC29 #DECE59

Accessibility & contrast

On white

3.31
#9E8E1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.34
#9E8E1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E8E1F
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E8E1F#FFFFFF#000000##000000
##9E8E1F1.003.316.346.34
#FFFFFF3.311.0021.0021.00
#0000006.3421.001.001.00
##0000006.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8A00
Deuteranopia (green-blind)
#A19028
Tritanopia (blue-blind)
#AB8379
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9e8e1f;
/* rgb */ color: rgb(158, 142, 31);
/* oklch */ color: oklch(64.2% 0.124 100.5);
Tailwind
colors: {
  custom: {
    50: '#bfae65',
    500: '#9e8e1f',
    950: '#000000',
  },
}
SCSS
$custom: #9e8e1f;
$custom-light: #bfae65;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8e1f",
  "rgb": {
    "r": 158,
    "g": 142,
    "b": 31
  },
  "hsl": {
    "h": 52.441,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.64205,
    "c": 0.12425,
    "h": 100.5
  },
  "luminance": 0.26714
}

Semantic roles & 50–950 ramp

primary
#9E8E1F
secondary
#5664C2
accent
#53EA3E
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9E8E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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