#9E8A1F#9E8A1F

#9E8A1F is a light, vivid yellow. Relative luminance 0.255; OKLCH L 63.3% C 0.121 H 97.9°. Best body text is #000000 at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#9E8A1F
RGBrgb(158, 138, 31)
HSLhsl(51, 67%, 37%)
HSVhsv(51, 80%, 62%)
CMYKcmyk(0%, 12.7%, 80.4%, 38%)
CIE-LABlab(57.60, -3.72, 55.32)
CIE-LCHlch(57.60, 55.44, 93.84°)
OKLaboklab(63.33% -0.0166 0.12)
OKLCHoklch(63.33% 0.121 97.9)
XYZxyz(23.4376, 25.5462, 4.9925)
Luminance0.2555 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8A1F #1F339E
analogous
#9E4A1F #9E8A1F #739E1F
triadic
#9E8A1F #1F9E8A #8A1F9E
tetradic
#9E8A1F #1F9E4A #1F339E #9E1F73
square
#9E8A1F #1F9E4A #1F339E #9E1F73
split-complementary
#9E8A1F #1F739E #4A1F9E
monochromatic
#38310B #6B5D15 #9E8A1F #D1B729 #DEC959

Accessibility & contrast

On white

3.44
#9E8A1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.11
#9E8A1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E8A1F
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E8A1F#FFFFFF#000000##000000
##9E8A1F1.003.446.116.11
#FFFFFF3.441.0021.0021.00
#0000006.1121.001.001.00
##0000006.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#998703
Deuteranopia (green-blind)
#9E8D27
Tritanopia (blue-blind)
#AB7F76
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9e8a1f;
/* rgb */ color: rgb(158, 138, 31);
/* oklch */ color: oklch(63.3% 0.121 97.9);
Tailwind
colors: {
  custom: {
    50: '#bfab65',
    500: '#9e8a1f',
    950: '#000000',
  },
}
SCSS
$custom: #9e8a1f;
$custom-light: #bfab65;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8a1f",
  "rgb": {
    "r": 158,
    "g": 138,
    "b": 31
  },
  "hsl": {
    "h": 50.551,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.63328,
    "c": 0.12116,
    "h": 97.9
  },
  "luminance": 0.25545
}

Semantic roles & 50–950 ramp

primary
#9E8A1F
secondary
#5667C2
accent
#59EA3E
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9E8A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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