#97178E#97178E

#97178E is a mid, highly saturated purple. Relative luminance 0.091; OKLCH L 47.7% C 0.201 H 331.6°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#97178E
RGBrgb(151, 23, 142)
HSLhsl(304, 74%, 34%)
HSVhsv(304, 85%, 59%)
CMYKcmyk(0%, 84.8%, 6%, 40.8%)
CIE-LABlab(36.27, 61.59, -34.61)
CIE-LCHlch(36.27, 70.65, 330.67°)
OKLaboklab(47.74% 0.1763 -0.0955)
OKLCHoklch(47.74% 0.201 331.6)
XYZxyz(17.9514, 9.1466, 26.4060)
Luminance0.0915 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97178E #179720
analogous
#601797 #97178E #97174E
triadic
#97178E #8E9717 #178E97
tetradic
#97178E #976017 #179720 #174E97
square
#97178E #976017 #179720 #174E97
split-complementary
#97178E #4E9717 #179760
monochromatic
#2D072A #620F5C #97178E #CC1FC0 #E346D8

Accessibility & contrast

On white

7.42
#97178E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#97178E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #97178E
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97178E#FFFFFF#000000##FFFFFF
##97178E1.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#024A91
Deuteranopia (green-blind)
#455B8B
Tritanopia (blue-blind)
#9D2A54
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #97178e;
/* rgb */ color: rgb(151, 23, 142);
/* oklch */ color: oklch(47.7% 0.201 331.6);
Tailwind
colors: {
  custom: {
    50: '#ba68af',
    500: '#97178e',
    950: '#000000',
  },
}
SCSS
$custom: #97178e;
$custom-light: #ba68af;
$custom-dark: #000000;
JSON
{
  "hex": "#97178e",
  "rgb": {
    "r": 151,
    "g": 23,
    "b": 142
  },
  "hsl": {
    "h": 304.219,
    "s": 73.563,
    "l": 34.118
  },
  "oklch": {
    "l": 0.47739,
    "c": 0.20053,
    "h": 331.6
  },
  "luminance": 0.09145
}

Semantic roles & 50–950 ramp

primary
#97178E
secondary
#46C44F
accent
#F04538
background
#FBF6FA
surface
#F7EBF4
border
#D0C6CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #97178E

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

Preview Lab → · Contrast checker → · Palette generator →

#97178E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva