#9E8717#9E8717

#9E8717 is a light, vivid yellow. Relative luminance 0.247; OKLCH L 62.6% C 0.123 H 96.2°. Best body text is #000000 at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#9E8717
RGBrgb(158, 135, 23)
HSLhsl(50, 75%, 35%)
HSVhsv(50, 85%, 62%)
CMYKcmyk(0%, 14.6%, 85.4%, 38%)
CIE-LABlab(56.74, -2.33, 56.98)
CIE-LCHlch(56.74, 57.03, 92.34°)
OKLaboklab(62.64% -0.0133 0.122)
OKLCHoklch(62.64% 0.123 96.2)
XYZxyz(22.9205, 24.6602, 4.3631)
Luminance0.2466 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8717 #172E9E
analogous
#9E4417 #9E8717 #719E17
triadic
#9E8717 #179E87 #87179E
tetradic
#9E8717 #179E44 #172E9E #9E1771
square
#9E8717 #179E44 #172E9E #9E1771
split-complementary
#9E8717 #17719E #44179E
monochromatic
#332C07 #69590F #9E8717 #D3B51F #E5CA4B

Accessibility & contrast

On white

3.54
#9E8717 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.93
#9E8717 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E8717
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E8717#FFFFFF#000000##000000
##9E87171.003.545.935.93
#FFFFFF3.541.0021.0021.00
#0000005.9321.001.001.00
##0000005.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#968400
Deuteranopia (green-blind)
#9C8B20
Tritanopia (blue-blind)
#AB7C73
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #9e8717;
/* rgb */ color: rgb(158, 135, 23);
/* oklch */ color: oklch(62.6% 0.123 96.2);
Tailwind
colors: {
  custom: {
    50: '#bfa961',
    500: '#9e8717',
    950: '#000000',
  },
}
SCSS
$custom: #9e8717;
$custom-light: #bfa961;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8717",
  "rgb": {
    "r": 158,
    "g": 135,
    "b": 23
  },
  "hsl": {
    "h": 49.778,
    "s": 74.586,
    "l": 35.49
  },
  "oklch": {
    "l": 0.62635,
    "c": 0.12269,
    "h": 96.2
  },
  "luminance": 0.24659
}

Semantic roles & 50–950 ramp

primary
#9E8717
secondary
#4A60C6
accent
#56F137
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F05
muted
#827F7A

Preview Lab

Preview with #9E8717

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

Preview Lab → · Contrast checker → · Palette generator →

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