#9A217C#9A217C

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

Color values

HEX#9A217C
RGBrgb(154, 33, 124)
HSLhsl(315, 65%, 37%)
HSVhsv(315, 79%, 60%)
CMYKcmyk(0%, 78.6%, 19.5%, 39.6%)
CIE-LABlab(36.77, 57.04, -22.63)
CIE-LCHlch(36.77, 61.36, 338.36°)
OKLaboklab(47.9% 0.1705 -0.0611)
OKLCHoklch(47.9% 0.181 340.3)
XYZxyz(17.5089, 9.4148, 19.9600)
Luminance0.0941 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A217C #219A3F
analogous
#7C219A #9A217C #9A2140
triadic
#9A217C #7C9A21 #217C9A
tetradic
#9A217C #9A7C21 #219A3F #21409A
square
#9A217C #9A7C21 #219A3F #21409A
split-complementary
#9A217C #409A21 #219A7C
monochromatic
#350B2B #681653 #9A217C #CC2CA5 #DC5ABB

Accessibility & contrast

On white

7.29
#9A217C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#9A217C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9A217C
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A217C#FFFFFF#000000##FFFFFF
##9A217C1.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4A7E
Deuteranopia (green-blind)
#535D79
Tritanopia (blue-blind)
#A3254D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #9a217c;
/* rgb */ color: rgb(154, 33, 124);
/* oklch */ color: oklch(47.9% 0.181 340.3);
Tailwind
colors: {
  custom: {
    50: '#bc6aa2',
    500: '#9a217c',
    950: '#000000',
  },
}
SCSS
$custom: #9a217c;
$custom-light: #bc6aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#9a217c",
  "rgb": {
    "r": 154,
    "g": 33,
    "b": 124
  },
  "hsl": {
    "h": 314.876,
    "s": 64.706,
    "l": 36.667
  },
  "oklch": {
    "l": 0.47899,
    "c": 0.1811,
    "h": 340.3
  },
  "luminance": 0.09413
}

Semantic roles & 50–950 ramp

primary
#9A217C
secondary
#57C071
accent
#E86A40
background
#FCF6FA
surface
#F8ECF3
border
#D1C7CD
text
#12070F
muted
#817A7F

Preview Lab

Preview with #9A217C

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

Preview Lab → · Contrast checker → · Palette generator →

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