#9E158C#9E158C

#9E158C is a mid, highly saturated purple. Relative luminance 0.097; OKLCH L 48.7% C 0.204 H 334.8°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#9E158C
RGBrgb(158, 21, 140)
HSLhsl(308, 77%, 35%)
HSVhsv(308, 87%, 62%)
CMYKcmyk(0%, 86.7%, 11.4%, 38%)
CIE-LABlab(37.30, 63.14, -31.66)
CIE-LCHlch(37.30, 70.63, 333.37°)
OKLaboklab(48.68% 0.1844 -0.0868)
OKLCHoklch(48.68% 0.204 334.8)
XYZxyz(19.1026, 9.7007, 25.6722)
Luminance0.0970 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E158C #159E27
analogous
#6B159E #9E158C #9E1548
triadic
#9E158C #8C9E15 #158C9E
tetradic
#9E158C #9E6B15 #159E27 #15489E
square
#9E158C #9E6B15 #159E27 #15489E
split-complementary
#9E158C #489E15 #159E6B
monochromatic
#32072C #680E5C #9E158C #D41CBC #E747D2

Accessibility & contrast

On white

7.14
#9E158C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#9E158C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9E158C
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E158C#FFFFFF#000000##FFFFFF
##9E158C1.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124B8F
Deuteranopia (green-blind)
#4C5F89
Tritanopia (blue-blind)
#A62553
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9e158c;
/* rgb */ color: rgb(158, 21, 140);
/* oklch */ color: oklch(48.7% 0.204 334.8);
Tailwind
colors: {
  custom: {
    50: '#bf68ae',
    500: '#9e158c',
    950: '#000000',
  },
}
SCSS
$custom: #9e158c;
$custom-light: #bf68ae;
$custom-dark: #000000;
JSON
{
  "hex": "#9e158c",
  "rgb": {
    "r": 158,
    "g": 21,
    "b": 140
  },
  "hsl": {
    "h": 307.883,
    "s": 76.536,
    "l": 35.098
  },
  "oklch": {
    "l": 0.48677,
    "c": 0.20383,
    "h": 334.8
  },
  "luminance": 0.09699
}

Semantic roles & 50–950 ramp

primary
#9E158C
secondary
#47C758
accent
#F34E35
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130710
muted
#827A7F

Preview Lab

Preview with #9E158C

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

Preview Lab → · Contrast checker → · Palette generator →

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