#9E8B1F#9E8B1F

#9E8B1F is a light, vivid yellow. Relative luminance 0.258; OKLCH L 63.5% C 0.122 H 98.5°. Best body text is #000000 at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#9E8B1F
RGBrgb(158, 139, 31)
HSLhsl(51, 67%, 37%)
HSVhsv(51, 80%, 62%)
CMYKcmyk(0%, 12%, 80.4%, 38%)
CIE-LABlab(57.88, -4.26, 55.57)
CIE-LCHlch(57.88, 55.73, 94.39°)
OKLaboklab(63.55% -0.0181 0.1206)
OKLCHoklch(63.55% 0.122 98.5)
XYZxyz(23.5817, 25.8345, 5.0405)
Luminance0.2583 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8B1F #1F329E
analogous
#9E4C1F #9E8B1F #719E1F
triadic
#9E8B1F #1F9E8B #8B1F9E
tetradic
#9E8B1F #1F9E4C #1F329E #9E1F71
square
#9E8B1F #1F9E4C #1F329E #9E1F71
split-complementary
#9E8B1F #1F719E #4C1F9E
monochromatic
#38310B #6B5E15 #9E8B1F #D1B829 #DECA59

Accessibility & contrast

On white

3.41
#9E8B1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.17
#9E8B1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E8B1F
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E8B1F#FFFFFF#000000##000000
##9E8B1F1.003.416.176.17
#FFFFFF3.411.0021.0021.00
#0000006.1721.001.001.00
##0000006.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8702
Deuteranopia (green-blind)
#9F8E27
Tritanopia (blue-blind)
#AB8077
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9e8b1f;
/* rgb */ color: rgb(158, 139, 31);
/* oklch */ color: oklch(63.5% 0.122 98.5);
Tailwind
colors: {
  custom: {
    50: '#bfac65',
    500: '#9e8b1f',
    950: '#000000',
  },
}
SCSS
$custom: #9e8b1f;
$custom-light: #bfac65;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8b1f",
  "rgb": {
    "r": 158,
    "g": 139,
    "b": 31
  },
  "hsl": {
    "h": 51.024,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.63547,
    "c": 0.1219,
    "h": 98.5
  },
  "luminance": 0.25833
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9E8B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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