#9E8D1F#9E8D1F

#9E8D1F is a light, vivid yellow. Relative luminance 0.264; OKLCH L 64.0% C 0.123 H 99.9°. Best body text is #000000 at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#9E8D1F
RGBrgb(158, 141, 31)
HSLhsl(52, 67%, 37%)
HSVhsv(52, 80%, 62%)
CMYKcmyk(0%, 10.8%, 80.4%, 38%)
CIE-LABlab(58.43, -5.35, 56.06)
CIE-LCHlch(58.43, 56.31, 95.46°)
OKLaboklab(63.99% -0.0212 0.1216)
OKLCHoklch(63.99% 0.123 99.9)
XYZxyz(23.8740, 26.4190, 5.1379)
Luminance0.2642 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8D1F #1F309E
analogous
#9E4E1F #9E8D1F #6F9E1F
triadic
#9E8D1F #1F9E8D #8D1F9E
tetradic
#9E8D1F #1F9E4E #1F309E #9E1F6F
square
#9E8D1F #1F9E4E #1F309E #9E1F6F
split-complementary
#9E8D1F #1F6F9E #4E1F9E
monochromatic
#38320B #6B5F15 #9E8D1F #D1BB29 #DECD59

Accessibility & contrast

On white

3.34
#9E8D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.28
#9E8D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E8D1F
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E8D1F#FFFFFF#000000##000000
##9E8D1F1.003.346.286.28
#FFFFFF3.341.0021.0021.00
#0000006.2821.001.001.00
##0000006.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8901
Deuteranopia (green-blind)
#A08F27
Tritanopia (blue-blind)
#AB8279
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #9e8d1f;
/* rgb */ color: rgb(158, 141, 31);
/* oklch */ color: oklch(64.0% 0.123 99.9);
Tailwind
colors: {
  custom: {
    50: '#bfae65',
    500: '#9e8d1f',
    950: '#000000',
  },
}
SCSS
$custom: #9e8d1f;
$custom-light: #bfae65;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8d1f",
  "rgb": {
    "r": 158,
    "g": 141,
    "b": 31
  },
  "hsl": {
    "h": 51.969,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.63985,
    "c": 0.12345,
    "h": 99.9
  },
  "luminance": 0.26418
}

Semantic roles & 50–950 ramp

primary
#9E8D1F
secondary
#5665C2
accent
#55EA3E
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9E8D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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