#9A217D#9A217D

#9A217D is a mid, vivid pink. Relative luminance 0.094; OKLCH L 47.9% C 0.182 H 339.8°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#9A217D
RGBrgb(154, 33, 125)
HSLhsl(314, 65%, 37%)
HSVhsv(314, 79%, 60%)
CMYKcmyk(0%, 78.6%, 18.8%, 39.6%)
CIE-LABlab(36.82, 57.18, -23.18)
CIE-LCHlch(36.82, 61.69, 337.93°)
OKLaboklab(47.95% 0.1706 -0.0627)
OKLCHoklch(47.95% 0.182 339.8)
XYZxyz(17.5725, 9.4402, 20.2948)
Luminance0.0944 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A217D #219A3E
analogous
#7B219A #9A217D #9A2141
triadic
#9A217D #7D9A21 #217D9A
tetradic
#9A217D #9A7B21 #219A3E #21419A
square
#9A217D #9A7B21 #219A3E #21419A
split-complementary
#9A217D #419A21 #219A7B
monochromatic
#350B2B #681654 #9A217D #CC2CA6 #DC5ABC

Accessibility & contrast

On white

7.27
#9A217D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#9A217D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9A217D
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A217D#FFFFFF#000000##FFFFFF
##9A217D1.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4A7F
Deuteranopia (green-blind)
#525D7A
Tritanopia (blue-blind)
#A3264D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #9a217d;
/* rgb */ color: rgb(154, 33, 125);
/* oklch */ color: oklch(47.9% 0.182 339.8);
Tailwind
colors: {
  custom: {
    50: '#bc6aa3',
    500: '#9a217d',
    950: '#000000',
  },
}
SCSS
$custom: #9a217d;
$custom-light: #bc6aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#9a217d",
  "rgb": {
    "r": 154,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 314.38,
    "s": 64.706,
    "l": 36.667
  },
  "oklch": {
    "l": 0.47948,
    "c": 0.18176,
    "h": 339.8
  },
  "luminance": 0.09438
}

Semantic roles & 50–950 ramp

primary
#9A217D
secondary
#57C070
accent
#E86840
background
#FCF6FA
surface
#F8ECF3
border
#D1C7CD
text
#12070F
muted
#817A7F

Preview Lab

Preview with #9A217D

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

Preview Lab → · Contrast checker → · Palette generator →

#9A217D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva