#97217F#97217F

#97217F is a mid, vivid pink. Relative luminance 0.092; OKLCH L 47.6% C 0.181 H 337.8°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#97217F
RGBrgb(151, 33, 127)
HSLhsl(312, 64%, 36%)
HSVhsv(312, 78%, 59%)
CMYKcmyk(0%, 78.1%, 15.9%, 40.8%)
CIE-LABlab(36.37, 56.74, -25.17)
CIE-LCHlch(36.37, 62.08, 336.08°)
OKLaboklab(47.55% 0.1679 -0.0684)
OKLCHoklch(47.55% 0.181 337.8)
XYZxyz(17.1375, 9.2010, 20.9480)
Luminance0.0920 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97217F #219739
analogous
#742197 #97217F #972144
triadic
#97217F #7F9721 #217F97
tetradic
#97217F #977421 #219739 #214497
square
#97217F #977421 #219739 #214497
split-complementary
#97217F #449721 #219774
monochromatic
#330B2B #651655 #97217F #C92CA9 #DA58C0

Accessibility & contrast

On white

7.39
#97217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#97217F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #97217F
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97217F#FFFFFF#000000##FFFFFF
##97217F1.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264A81
Deuteranopia (green-blind)
#4F5C7C
Tritanopia (blue-blind)
#A0284E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #97217f;
/* rgb */ color: rgb(151, 33, 127);
/* oklch */ color: oklch(47.6% 0.181 337.8);
Tailwind
colors: {
  custom: {
    50: '#b96aa4',
    500: '#97217f',
    950: '#000000',
  },
}
SCSS
$custom: #97217f;
$custom-light: #b96aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#97217f",
  "rgb": {
    "r": 151,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 312.203,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.47554,
    "c": 0.18133,
    "h": 337.8
  },
  "luminance": 0.09199
}

Semantic roles & 50–950 ramp

primary
#97217F
secondary
#55BE6B
accent
#E76341
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#12070F
muted
#817A7F

Preview Lab

Preview with #97217F

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

Preview Lab → · Contrast checker → · Palette generator →

#97217F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva