#97178A#97178A

#97178A is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.5% C 0.198 H 333.1°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#97178A
RGBrgb(151, 23, 138)
HSLhsl(306, 74%, 34%)
HSVhsv(306, 85%, 59%)
CMYKcmyk(0%, 84.8%, 8.6%, 40.8%)
CIE-LABlab(36.04, 60.99, -32.50)
CIE-LCHlch(36.04, 69.11, 331.94°)
OKLaboklab(47.51% 0.1763 -0.0894)
OKLCHoklch(47.51% 0.198 333.1)
XYZxyz(17.6565, 9.0287, 24.8526)
Luminance0.0903 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97178A #179724
analogous
#641797 #97178A #97174A
triadic
#97178A #8A9717 #178A97
tetradic
#97178A #976417 #179724 #174A97
square
#97178A #976417 #179724 #174A97
split-complementary
#97178A #4A9717 #179764
monochromatic
#2D0729 #620F59 #97178A #CC1FBB #E346D3

Accessibility & contrast

On white

7.49
#97178A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#97178A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #97178A
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97178A#FFFFFF#000000##FFFFFF
##97178A1.007.492.817.49
#FFFFFF7.491.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D498D
Deuteranopia (green-blind)
#475B87
Tritanopia (blue-blind)
#9E2852
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #97178a;
/* rgb */ color: rgb(151, 23, 138);
/* oklch */ color: oklch(47.5% 0.198 333.1);
Tailwind
colors: {
  custom: {
    50: '#ba67ac',
    500: '#97178a',
    950: '#000000',
  },
}
SCSS
$custom: #97178a;
$custom-light: #ba67ac;
$custom-dark: #000000;
JSON
{
  "hex": "#97178a",
  "rgb": {
    "r": 151,
    "g": 23,
    "b": 138
  },
  "hsl": {
    "h": 306.094,
    "s": 73.563,
    "l": 34.118
  },
  "oklch": {
    "l": 0.47505,
    "c": 0.19771,
    "h": 333.1
  },
  "luminance": 0.09027
}

Semantic roles & 50–950 ramp

primary
#97178A
secondary
#46C453
accent
#F04A38
background
#FBF6FA
surface
#F7EBF4
border
#D0C6CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #97178A

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

Preview Lab → · Contrast checker → · Palette generator →

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