#9A217E#9A217E

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

Color values

HEX#9A217E
RGBrgb(154, 33, 126)
HSLhsl(314, 65%, 37%)
HSVhsv(314, 79%, 60%)
CMYKcmyk(0%, 78.6%, 18.2%, 39.6%)
CIE-LABlab(36.87, 57.32, -23.73)
CIE-LCHlch(36.87, 62.03, 337.51°)
OKLaboklab(48% 0.1707 -0.0642)
OKLCHoklch(48% 0.182 339.4)
XYZxyz(17.6367, 9.4659, 20.6329)
Luminance0.0946 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A217E #219A3D
analogous
#7A219A #9A217E #9A2142
triadic
#9A217E #7E9A21 #217E9A
tetradic
#9A217E #9A7A21 #219A3D #21429A
square
#9A217E #9A7A21 #219A3D #21429A
split-complementary
#9A217E #429A21 #219A7A
monochromatic
#350B2C #681655 #9A217E #CC2CA7 #DC5ABE

Accessibility & contrast

On white

7.26
#9A217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #9A217E
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A217E#FFFFFF#000000##FFFFFF
##9A217E1.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294B80
Deuteranopia (green-blind)
#525D7B
Tritanopia (blue-blind)
#A3264E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #9a217e;
/* rgb */ color: rgb(154, 33, 126);
/* oklch */ color: oklch(48.0% 0.182 339.4);
Tailwind
colors: {
  custom: {
    50: '#bc6ba3',
    500: '#9a217e',
    950: '#000000',
  },
}
SCSS
$custom: #9a217e;
$custom-light: #bc6ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#9a217e",
  "rgb": {
    "r": 154,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 313.884,
    "s": 64.706,
    "l": 36.667
  },
  "oklch": {
    "l": 0.47998,
    "c": 0.18242,
    "h": 339.4
  },
  "luminance": 0.09464
}

Semantic roles & 50–950 ramp

primary
#9A217E
secondary
#57C06F
accent
#E86740
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#12070F
muted
#817A7F

Preview Lab

Preview with #9A217E

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

Preview Lab → · Contrast checker → · Palette generator →

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