#9E178B#9E178B

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

Color values

HEX#9E178B
RGBrgb(158, 23, 139)
HSLhsl(308, 75%, 35%)
HSVhsv(308, 85%, 62%)
CMYKcmyk(0%, 85.4%, 12%, 38%)
CIE-LABlab(37.39, 62.59, -30.91)
CIE-LCHlch(37.39, 69.80, 333.72°)
OKLaboklab(48.72% 0.1832 -0.0846)
OKLCHoklch(48.72% 0.202 335.2)
XYZxyz(19.0674, 9.7478, 25.2984)
Luminance0.0975 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E178B #179E2A
analogous
#6D179E #9E178B #9E1748
triadic
#9E178B #8B9E17 #178B9E
tetradic
#9E178B #9E6D17 #179E2A #17489E
square
#9E178B #9E6D17 #179E2A #17489E
split-complementary
#9E178B #489E17 #179E6D
monochromatic
#33072D #690F5C #9E178B #D31FBA #E54BCF

Accessibility & contrast

On white

7.12
#9E178B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #9E178B
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E178B#FFFFFF#000000##FFFFFF
##9E178B1.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164C8E
Deuteranopia (green-blind)
#4D5F88
Tritanopia (blue-blind)
#A62653
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9e178b;
/* rgb */ color: rgb(158, 23, 139);
/* oklch */ color: oklch(48.7% 0.202 335.2);
Tailwind
colors: {
  custom: {
    50: '#bf69ad',
    500: '#9e178b',
    950: '#000000',
  },
}
SCSS
$custom: #9e178b;
$custom-light: #bf69ad;
$custom-dark: #000000;
JSON
{
  "hex": "#9e178b",
  "rgb": {
    "r": 158,
    "g": 23,
    "b": 139
  },
  "hsl": {
    "h": 308.444,
    "s": 74.586,
    "l": 35.49
  },
  "oklch": {
    "l": 0.48721,
    "c": 0.20179,
    "h": 335.2
  },
  "luminance": 0.09746
}

Semantic roles & 50–950 ramp

primary
#9E178B
secondary
#4AC65C
accent
#F15137
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130710
muted
#827A7F

Preview Lab

Preview with #9E178B

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

Preview Lab → · Contrast checker → · Palette generator →

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