#97218D#97218D

#97218D is a mid, vivid purple. Relative luminance 0.096; OKLCH L 48.3% C 0.191 H 332.0°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#97218D
RGBrgb(151, 33, 141)
HSLhsl(305, 64%, 36%)
HSVhsv(305, 78%, 59%)
CMYKcmyk(0%, 78.1%, 6.6%, 40.8%)
CIE-LABlab(37.10, 58.86, -32.67)
CIE-LCHlch(37.10, 67.32, 330.96°)
OKLaboklab(48.32% 0.1688 -0.09)
OKLCHoklch(48.32% 0.191 332)
XYZxyz(18.1141, 9.5916, 26.0915)
Luminance0.0959 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97218D #21972B
analogous
#662197 #97218D #972152
triadic
#97218D #8D9721 #218D97
tetradic
#97218D #976621 #21972B #215297
square
#97218D #976621 #21972B #215297
split-complementary
#97218D #529721 #219766
monochromatic
#330B2F #65165E #97218D #C92CBC #DA58CF

Accessibility & contrast

On white

7.20
#97218D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#97218D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #97218D
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97218D#FFFFFF#000000##FFFFFF
##97218D1.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174D90
Deuteranopia (green-blind)
#495D8A
Tritanopia (blue-blind)
#9E3056
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #97218d;
/* rgb */ color: rgb(151, 33, 141);
/* oklch */ color: oklch(48.3% 0.191 332.0);
Tailwind
colors: {
  custom: {
    50: '#b96baf',
    500: '#97218d',
    950: '#000000',
  },
}
SCSS
$custom: #97218d;
$custom-light: #b96baf;
$custom-dark: #000000;
JSON
{
  "hex": "#97218d",
  "rgb": {
    "r": 151,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 305.085,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.48315,
    "c": 0.19131,
    "h": 332
  },
  "luminance": 0.0959
}

Semantic roles & 50–950 ramp

primary
#97218D
secondary
#55BE5E
accent
#E74F41
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #97218D

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

Preview Lab → · Contrast checker → · Palette generator →

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