#97178B#97178B

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

Color values

HEX#97178B
RGBrgb(151, 23, 139)
HSLhsl(306, 74%, 34%)
HSVhsv(306, 85%, 59%)
CMYKcmyk(0%, 84.8%, 7.9%, 40.8%)
CIE-LABlab(36.10, 61.14, -33.03)
CIE-LCHlch(36.10, 69.49, 331.62°)
OKLaboklab(47.56% 0.1764 -0.0909)
OKLCHoklch(47.56% 0.198 332.7)
XYZxyz(17.7292, 9.0578, 25.2357)
Luminance0.0906 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97178B #179723
analogous
#631797 #97178B #97174B
triadic
#97178B #8B9717 #178B97
tetradic
#97178B #976317 #179723 #174B97
square
#97178B #976317 #179723 #174B97
split-complementary
#97178B #4B9717 #179763
monochromatic
#2D0729 #620F5A #97178B #CC1FBC #E346D4

Accessibility & contrast

On white

7.47
#97178B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #97178B
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97178B#FFFFFF#000000##FFFFFF
##97178B1.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B4A8E
Deuteranopia (green-blind)
#475B88
Tritanopia (blue-blind)
#9E2953
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #97178b;
/* rgb */ color: rgb(151, 23, 139);
/* oklch */ color: oklch(47.6% 0.198 332.7);
Tailwind
colors: {
  custom: {
    50: '#ba67ad',
    500: '#97178b',
    950: '#000000',
  },
}
SCSS
$custom: #97178b;
$custom-light: #ba67ad;
$custom-dark: #000000;
JSON
{
  "hex": "#97178b",
  "rgb": {
    "r": 151,
    "g": 23,
    "b": 139
  },
  "hsl": {
    "h": 305.625,
    "s": 73.563,
    "l": 34.118
  },
  "oklch": {
    "l": 0.47563,
    "c": 0.19841,
    "h": 332.7
  },
  "luminance": 0.09056
}

Semantic roles & 50–950 ramp

primary
#97178B
secondary
#46C452
accent
#F04938
background
#FBF6FA
surface
#F7EBF4
border
#D0C6CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #97178B

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

Preview Lab → · Contrast checker → · Palette generator →

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