#9E158A#9E158A

#9E158A is a mid, highly saturated purple. Relative luminance 0.096; OKLCH L 48.6% C 0.202 H 335.6°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#9E158A
RGBrgb(158, 21, 138)
HSLhsl(309, 77%, 35%)
HSVhsv(309, 87%, 62%)
CMYKcmyk(0%, 86.7%, 12.7%, 38%)
CIE-LABlab(37.19, 62.85, -30.60)
CIE-LCHlch(37.19, 69.90, 334.04°)
OKLaboklab(48.57% 0.1844 -0.0837)
OKLCHoklch(48.57% 0.202 335.6)
XYZxyz(18.9565, 9.6422, 24.9026)
Luminance0.0964 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E158A #159E29
analogous
#6D159E #9E158A #9E1546
triadic
#9E158A #8A9E15 #158A9E
tetradic
#9E158A #9E6D15 #159E29 #15469E
square
#9E158A #9E6D15 #159E29 #15469E
split-complementary
#9E158A #469E15 #159E6D
monochromatic
#32072C #680E5B #9E158A #D41CB9 #E747CF

Accessibility & contrast

On white

7.17
#9E158A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#9E158A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9E158A
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E158A#FFFFFF#000000##FFFFFF
##9E158A1.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164B8D
Deuteranopia (green-blind)
#4D5E87
Tritanopia (blue-blind)
#A62452
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #9e158a;
/* rgb */ color: rgb(158, 21, 138);
/* oklch */ color: oklch(48.6% 0.202 335.6);
Tailwind
colors: {
  custom: {
    50: '#bf68ac',
    500: '#9e158a',
    950: '#000000',
  },
}
SCSS
$custom: #9e158a;
$custom-light: #bf68ac;
$custom-dark: #000000;
JSON
{
  "hex": "#9e158a",
  "rgb": {
    "r": 158,
    "g": 21,
    "b": 138
  },
  "hsl": {
    "h": 308.759,
    "s": 76.536,
    "l": 35.098
  },
  "oklch": {
    "l": 0.48566,
    "c": 0.20249,
    "h": 335.6
  },
  "luminance": 0.0964
}

Semantic roles & 50–950 ramp

primary
#9E158A
secondary
#47C75A
accent
#F35135
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130710
muted
#827A7F

Preview Lab

Preview with #9E158A

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

Preview Lab → · Contrast checker → · Palette generator →

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