#9E158B#9E158B

#9E158B is a mid, highly saturated purple. Relative luminance 0.097; OKLCH L 48.6% C 0.203 H 335.2°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#9E158B
RGBrgb(158, 21, 139)
HSLhsl(308, 77%, 35%)
HSVhsv(308, 87%, 62%)
CMYKcmyk(0%, 86.7%, 12%, 38%)
CIE-LABlab(37.25, 62.99, -31.13)
CIE-LCHlch(37.25, 70.27, 333.70°)
OKLaboklab(48.62% 0.1844 -0.0853)
OKLCHoklch(48.62% 0.203 335.2)
XYZxyz(19.0292, 9.6713, 25.2857)
Luminance0.0967 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E158B #159E28
analogous
#6C159E #9E158B #9E1547
triadic
#9E158B #8B9E15 #158B9E
tetradic
#9E158B #9E6C15 #159E28 #15479E
square
#9E158B #9E6C15 #159E28 #15479E
split-complementary
#9E158B #479E15 #159E6C
monochromatic
#32072C #680E5B #9E158B #D41CBB #E747D0

Accessibility & contrast

On white

7.16
#9E158B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #9E158B
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E158B#FFFFFF#000000##FFFFFF
##9E158B1.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144B8E
Deuteranopia (green-blind)
#4C5E88
Tritanopia (blue-blind)
#A62552
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9e158b;
/* rgb */ color: rgb(158, 21, 139);
/* oklch */ color: oklch(48.6% 0.203 335.2);
Tailwind
colors: {
  custom: {
    50: '#bf68ad',
    500: '#9e158b',
    950: '#000000',
  },
}
SCSS
$custom: #9e158b;
$custom-light: #bf68ad;
$custom-dark: #000000;
JSON
{
  "hex": "#9e158b",
  "rgb": {
    "r": 158,
    "g": 21,
    "b": 139
  },
  "hsl": {
    "h": 308.321,
    "s": 76.536,
    "l": 35.098
  },
  "oklch": {
    "l": 0.48622,
    "c": 0.20315,
    "h": 335.2
  },
  "luminance": 0.0967
}

Semantic roles & 50–950 ramp

primary
#9E158B
secondary
#47C759
accent
#F34F35
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130710
muted
#827A7F

Preview Lab

Preview with #9E158B

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

Preview Lab → · Contrast checker → · Palette generator →

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