#9E178D#9E178D

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

Color values

HEX#9E178D
RGBrgb(158, 23, 141)
HSLhsl(308, 75%, 35%)
HSVhsv(308, 85%, 62%)
CMYKcmyk(0%, 85.4%, 10.8%, 38%)
CIE-LABlab(37.49, 62.88, -31.97)
CIE-LCHlch(37.49, 70.54, 333.05°)
OKLaboklab(48.83% 0.1832 -0.0877)
OKLCHoklch(48.83% 0.203 334.4)
XYZxyz(19.2149, 9.8068, 26.0751)
Luminance0.0980 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E178D #179E28
analogous
#6C179E #9E178D #9E1749
triadic
#9E178D #8D9E17 #178D9E
tetradic
#9E178D #9E6C17 #179E28 #17499E
square
#9E178D #9E6C17 #179E28 #17499E
split-complementary
#9E178D #499E17 #179E6C
monochromatic
#33072E #690F5D #9E178D #D31FBD #E54BD1

Accessibility & contrast

On white

7.09
#9E178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#9E178D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9E178D
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E178D#FFFFFF#000000##FFFFFF
##9E178D1.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134C90
Deuteranopia (green-blind)
#4C5F8A
Tritanopia (blue-blind)
#A62754
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9e178d;
/* rgb */ color: rgb(158, 23, 141);
/* oklch */ color: oklch(48.8% 0.203 334.4);
Tailwind
colors: {
  custom: {
    50: '#bf69af',
    500: '#9e178d',
    950: '#000000',
  },
}
SCSS
$custom: #9e178d;
$custom-light: #bf69af;
$custom-dark: #000000;
JSON
{
  "hex": "#9e178d",
  "rgb": {
    "r": 158,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 307.556,
    "s": 74.586,
    "l": 35.49
  },
  "oklch": {
    "l": 0.48833,
    "c": 0.20315,
    "h": 334.4
  },
  "luminance": 0.09805
}

Semantic roles & 50–950 ramp

primary
#9E178D
secondary
#4AC65A
accent
#F14E37
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130710
muted
#827A7F

Preview Lab

Preview with #9E178D

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

Preview Lab → · Contrast checker → · Palette generator →

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