#97218B#97218B

#97218B is a mid, vivid purple. Relative luminance 0.095; OKLCH L 48.2% C 0.190 H 332.8°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#97218B
RGBrgb(151, 33, 139)
HSLhsl(306, 64%, 36%)
HSVhsv(306, 78%, 59%)
CMYKcmyk(0%, 78.1%, 7.9%, 40.8%)
CIE-LABlab(36.99, 58.55, -31.62)
CIE-LCHlch(36.99, 66.54, 331.63°)
OKLaboklab(48.2% 0.1688 -0.0869)
OKLCHoklch(48.2% 0.19 332.8)
XYZxyz(17.9667, 9.5326, 25.3148)
Luminance0.0953 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97218B #21972D
analogous
#682197 #97218B #972150
triadic
#97218B #8B9721 #218B97
tetradic
#97218B #976821 #21972D #215097
square
#97218B #976821 #21972D #215097
split-complementary
#97218B #509721 #219768
monochromatic
#330B2F #65165D #97218B #C92CB9 #DA58CD

Accessibility & contrast

On white

7.23
#97218B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#97218B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #97218B
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97218B#FFFFFF#000000##FFFFFF
##97218B1.007.232.917.23
#FFFFFF7.231.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4C8E
Deuteranopia (green-blind)
#4A5D88
Tritanopia (blue-blind)
#9E2F55
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #97218b;
/* rgb */ color: rgb(151, 33, 139);
/* oklch */ color: oklch(48.2% 0.190 332.8);
Tailwind
colors: {
  custom: {
    50: '#b96bad',
    500: '#97218b',
    950: '#000000',
  },
}
SCSS
$custom: #97218b;
$custom-light: #b96bad;
$custom-dark: #000000;
JSON
{
  "hex": "#97218b",
  "rgb": {
    "r": 151,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 306.102,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.48202,
    "c": 0.18984,
    "h": 332.8
  },
  "luminance": 0.09531
}

Semantic roles & 50–950 ramp

primary
#97218B
secondary
#55BE60
accent
#E75241
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #97218B

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

Preview Lab → · Contrast checker → · Palette generator →

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