#9A217A#9A217A

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

Color values

HEX#9A217A
RGBrgb(154, 33, 122)
HSLhsl(316, 65%, 37%)
HSVhsv(316, 79%, 60%)
CMYKcmyk(0%, 78.6%, 20.8%, 39.6%)
CIE-LABlab(36.68, 56.76, -21.53)
CIE-LCHlch(36.68, 60.70, 339.23°)
OKLaboklab(47.8% 0.1702 -0.058)
OKLCHoklch(47.8% 0.18 341.2)
XYZxyz(17.3837, 9.3647, 19.3006)
Luminance0.0936 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A217A #219A41
analogous
#7E219A #9A217A #9A213E
triadic
#9A217A #7A9A21 #217A9A
tetradic
#9A217A #9A7E21 #219A41 #213E9A
square
#9A217A #9A7E21 #219A41 #213E9A
split-complementary
#9A217A #3E9A21 #219A7E
monochromatic
#350B2A #681652 #9A217A #CC2CA2 #DC5AB9

Accessibility & contrast

On white

7.31
#9A217A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#9A217A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9A217A
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A217A#FFFFFF#000000##FFFFFF
##9A217A1.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C4A7C
Deuteranopia (green-blind)
#535D77
Tritanopia (blue-blind)
#A4244B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #9a217a;
/* rgb */ color: rgb(154, 33, 122);
/* oklch */ color: oklch(47.8% 0.180 341.2);
Tailwind
colors: {
  custom: {
    50: '#bc6aa0',
    500: '#9a217a',
    950: '#000000',
  },
}
SCSS
$custom: #9a217a;
$custom-light: #bc6aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#9a217a",
  "rgb": {
    "r": 154,
    "g": 33,
    "b": 122
  },
  "hsl": {
    "h": 315.868,
    "s": 64.706,
    "l": 36.667
  },
  "oklch": {
    "l": 0.478,
    "c": 0.1798,
    "h": 341.2
  },
  "luminance": 0.09363
}

Semantic roles & 50–950 ramp

primary
#9A217A
secondary
#57C073
accent
#E86C40
background
#FCF6F9
surface
#F8ECF2
border
#D1C7CC
text
#12070F
muted
#817A7E

Preview Lab

Preview with #9A217A

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

Preview Lab → · Contrast checker → · Palette generator →

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