#9E178C#9E178C

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

Color values

HEX#9E178C
RGBrgb(158, 23, 140)
HSLhsl(308, 75%, 35%)
HSVhsv(308, 85%, 62%)
CMYKcmyk(0%, 85.4%, 11.4%, 38%)
CIE-LABlab(37.44, 62.73, -31.44)
CIE-LCHlch(37.44, 70.17, 333.38°)
OKLaboklab(48.78% 0.1832 -0.0862)
OKLCHoklch(48.78% 0.202 334.8)
XYZxyz(19.1408, 9.7771, 25.6850)
Luminance0.0978 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E178C #179E29
analogous
#6C179E #9E178C #9E1748
triadic
#9E178C #8C9E17 #178C9E
tetradic
#9E178C #9E6C17 #179E29 #17489E
square
#9E178C #9E6C17 #179E29 #17489E
split-complementary
#9E178C #489E17 #179E6C
monochromatic
#33072D #690F5D #9E178C #D31FBB #E54BD0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9E178C#FFFFFF#000000##FFFFFF
##9E178C1.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)
#154C8F
Deuteranopia (green-blind)
#4C5F89
Tritanopia (blue-blind)
#A62753
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9e178c;
/* rgb */ color: rgb(158, 23, 140);
/* oklch */ color: oklch(48.8% 0.202 334.8);
Tailwind
colors: {
  custom: {
    50: '#bf69ae',
    500: '#9e178c',
    950: '#000000',
  },
}
SCSS
$custom: #9e178c;
$custom-light: #bf69ae;
$custom-dark: #000000;
JSON
{
  "hex": "#9e178c",
  "rgb": {
    "r": 158,
    "g": 23,
    "b": 140
  },
  "hsl": {
    "h": 308,
    "s": 74.586,
    "l": 35.49
  },
  "oklch": {
    "l": 0.48777,
    "c": 0.20247,
    "h": 334.8
  },
  "luminance": 0.09775
}

Semantic roles & 50–950 ramp

primary
#9E178C
secondary
#4AC65B
accent
#F14F37
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130710
muted
#827A7F

Preview Lab

Preview with #9E178C

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

Preview Lab → · Contrast checker → · Palette generator →

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