#9A217B#9A217B

#9A217B is a mid, vivid pink. Relative luminance 0.094; OKLCH L 47.8% C 0.180 H 340.7°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#9A217B
RGBrgb(154, 33, 123)
HSLhsl(315, 65%, 37%)
HSVhsv(315, 79%, 60%)
CMYKcmyk(0%, 78.6%, 20.1%, 39.6%)
CIE-LABlab(36.72, 56.90, -22.08)
CIE-LCHlch(36.72, 61.03, 338.79°)
OKLaboklab(47.85% 0.1704 -0.0595)
OKLCHoklch(47.85% 0.18 340.7)
XYZxyz(17.4460, 9.3896, 19.6286)
Luminance0.0939 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A217B #219A40
analogous
#7D219A #9A217B #9A213F
triadic
#9A217B #7B9A21 #217B9A
tetradic
#9A217B #9A7D21 #219A40 #213F9A
square
#9A217B #9A7D21 #219A40 #213F9A
split-complementary
#9A217B #3F9A21 #219A7D
monochromatic
#350B2A #681653 #9A217B #CC2CA3 #DC5ABA

Accessibility & contrast

On white

7.30
#9A217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #9A217B
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A217B#FFFFFF#000000##FFFFFF
##9A217B1.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4A7D
Deuteranopia (green-blind)
#535D78
Tritanopia (blue-blind)
#A4244C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #9a217b;
/* rgb */ color: rgb(154, 33, 123);
/* oklch */ color: oklch(47.8% 0.180 340.7);
Tailwind
colors: {
  custom: {
    50: '#bc6aa1',
    500: '#9a217b',
    950: '#000000',
  },
}
SCSS
$custom: #9a217b;
$custom-light: #bc6aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#9a217b",
  "rgb": {
    "r": 154,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 315.372,
    "s": 64.706,
    "l": 36.667
  },
  "oklch": {
    "l": 0.47849,
    "c": 0.18046,
    "h": 340.7
  },
  "luminance": 0.09388
}

Semantic roles & 50–950 ramp

primary
#9A217B
secondary
#57C072
accent
#E86B40
background
#FCF6F9
surface
#F8ECF2
border
#D1C7CC
text
#12070F
muted
#817A7E

Preview Lab

Preview with #9A217B

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

Preview Lab → · Contrast checker → · Palette generator →

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