#97178C#97178C

#97178C is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.6% C 0.199 H 332.3°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#97178C
RGBrgb(151, 23, 140)
HSLhsl(305, 74%, 34%)
HSVhsv(305, 85%, 59%)
CMYKcmyk(0%, 84.8%, 7.3%, 40.8%)
CIE-LABlab(36.15, 61.29, -33.56)
CIE-LCHlch(36.15, 69.87, 331.30°)
OKLaboklab(47.62% 0.1764 -0.0925)
OKLCHoklch(47.62% 0.199 332.3)
XYZxyz(17.8026, 9.0871, 25.6222)
Luminance0.0909 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97178C #179722
analogous
#621797 #97178C #97174C
triadic
#97178C #8C9717 #178C97
tetradic
#97178C #976217 #179722 #174C97
square
#97178C #976217 #179722 #174C97
split-complementary
#97178C #4C9717 #179762
monochromatic
#2D072A #620F5B #97178C #CC1FBD #E346D5

Accessibility & contrast

On white

7.45
#97178C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#97178C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #97178C
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97178C#FFFFFF#000000##FFFFFF
##97178C1.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#084A8F
Deuteranopia (green-blind)
#465B89
Tritanopia (blue-blind)
#9E2953
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #97178c;
/* rgb */ color: rgb(151, 23, 140);
/* oklch */ color: oklch(47.6% 0.199 332.3);
Tailwind
colors: {
  custom: {
    50: '#ba67ae',
    500: '#97178c',
    950: '#000000',
  },
}
SCSS
$custom: #97178c;
$custom-light: #ba67ae;
$custom-dark: #000000;
JSON
{
  "hex": "#97178c",
  "rgb": {
    "r": 151,
    "g": 23,
    "b": 140
  },
  "hsl": {
    "h": 305.156,
    "s": 73.563,
    "l": 34.118
  },
  "oklch": {
    "l": 0.47621,
    "c": 0.19912,
    "h": 332.3
  },
  "luminance": 0.09086
}

Semantic roles & 50–950 ramp

primary
#97178C
secondary
#46C451
accent
#F04738
background
#FBF6FA
surface
#F7EBF4
border
#D0C6CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #97178C

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

Preview Lab → · Contrast checker → · Palette generator →

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