#9E158E#9E158E

#9E158E is a mid, highly saturated purple. Relative luminance 0.098; OKLCH L 48.8% C 0.205 H 334.0°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#9E158E
RGBrgb(158, 21, 142)
HSLhsl(307, 77%, 35%)
HSVhsv(307, 87%, 62%)
CMYKcmyk(0%, 86.7%, 10.1%, 38%)
CIE-LABlab(37.41, 63.43, -32.72)
CIE-LCHlch(37.41, 71.37, 332.71°)
OKLaboklab(48.79% 0.1845 -0.0898)
OKLCHoklch(48.79% 0.205 334)
XYZxyz(19.2514, 9.7602, 26.4560)
Luminance0.0976 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E158E #159E25
analogous
#69159E #9E158E #9E154A
triadic
#9E158E #8E9E15 #158E9E
tetradic
#9E158E #9E6915 #159E25 #154A9E
square
#9E158E #9E6915 #159E25 #154A9E
split-complementary
#9E158E #4A9E15 #159E69
monochromatic
#32072D #680E5D #9E158E #D41CBF #E747D4

Accessibility & contrast

On white

7.11
#9E158E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#9E158E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9E158E
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E158E#FFFFFF#000000##FFFFFF
##9E158E1.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4C91
Deuteranopia (green-blind)
#4B5F8B
Tritanopia (blue-blind)
#A62754
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9e158e;
/* rgb */ color: rgb(158, 21, 142);
/* oklch */ color: oklch(48.8% 0.205 334.0);
Tailwind
colors: {
  custom: {
    50: '#bf68af',
    500: '#9e158e',
    950: '#000000',
  },
}
SCSS
$custom: #9e158e;
$custom-light: #bf68af;
$custom-dark: #000000;
JSON
{
  "hex": "#9e158e",
  "rgb": {
    "r": 158,
    "g": 21,
    "b": 142
  },
  "hsl": {
    "h": 307.007,
    "s": 76.536,
    "l": 35.098
  },
  "oklch": {
    "l": 0.4879,
    "c": 0.20518,
    "h": 334
  },
  "luminance": 0.09758
}

Semantic roles & 50–950 ramp

primary
#9E158E
secondary
#47C756
accent
#F34B35
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130710
muted
#827A7F

Preview Lab

Preview with #9E158E

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

Preview Lab → · Contrast checker → · Palette generator →

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