#9A217F#9A217F

#9A217F is a mid, vivid pink. Relative luminance 0.095; OKLCH L 48.0% C 0.183 H 338.9°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#9A217F
RGBrgb(154, 33, 127)
HSLhsl(313, 65%, 37%)
HSVhsv(313, 79%, 60%)
CMYKcmyk(0%, 78.6%, 17.5%, 39.6%)
CIE-LABlab(36.91, 57.46, -24.27)
CIE-LCHlch(36.91, 62.37, 337.10°)
OKLaboklab(48.05% 0.1709 -0.0658)
OKLCHoklch(48.05% 0.183 338.9)
XYZxyz(17.7015, 9.4918, 20.9744)
Luminance0.0949 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A217F #219A3C
analogous
#79219A #9A217F #9A2143
triadic
#9A217F #7F9A21 #217F9A
tetradic
#9A217F #9A7921 #219A3C #21439A
square
#9A217F #9A7921 #219A3C #21439A
split-complementary
#9A217F #439A21 #219A79
monochromatic
#350B2C #681655 #9A217F #CC2CA9 #DC5ABF

Accessibility & contrast

On white

7.25
#9A217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#9A217F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9A217F
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A217F#FFFFFF#000000##FFFFFF
##9A217F1.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294B81
Deuteranopia (green-blind)
#525E7C
Tritanopia (blue-blind)
#A3274E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #9a217f;
/* rgb */ color: rgb(154, 33, 127);
/* oklch */ color: oklch(48.0% 0.183 338.9);
Tailwind
colors: {
  custom: {
    50: '#bc6ba4',
    500: '#9a217f',
    950: '#000000',
  },
}
SCSS
$custom: #9a217f;
$custom-light: #bc6ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#9a217f",
  "rgb": {
    "r": 154,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 313.388,
    "s": 64.706,
    "l": 36.667
  },
  "oklch": {
    "l": 0.48049,
    "c": 0.18309,
    "h": 338.9
  },
  "luminance": 0.0949
}

Semantic roles & 50–950 ramp

primary
#9A217F
secondary
#57C06E
accent
#E86640
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#12070F
muted
#817A7F

Preview Lab

Preview with #9A217F

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

Preview Lab → · Contrast checker → · Palette generator →

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