#9B217D#9B217D

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

Color values

HEX#9B217D
RGBrgb(155, 33, 125)
HSLhsl(315, 65%, 37%)
HSVhsv(315, 79%, 61%)
CMYKcmyk(0%, 78.7%, 19.4%, 39.2%)
CIE-LABlab(37.00, 57.41, -22.88)
CIE-LCHlch(37.00, 61.81, 338.27°)
OKLaboklab(48.11% 0.1716 -0.0618)
OKLCHoklch(48.11% 0.182 340.2)
XYZxyz(17.7636, 9.5387, 20.3037)
Luminance0.0954 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B217D #219B3F
analogous
#7C219B #9B217D #9B2140
triadic
#9B217D #7D9B21 #217D9B
tetradic
#9B217D #9B7C21 #219B3F #21409B
square
#9B217D #9B7C21 #219B3F #21409B
split-complementary
#9B217D #409B21 #219B7C
monochromatic
#360C2C #691654 #9B217D #CD2CA6 #DC5ABC

Accessibility & contrast

On white

7.22
#9B217D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#9B217D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9B217D
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B217D#FFFFFF#000000##FFFFFF
##9B217D1.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4B7F
Deuteranopia (green-blind)
#535E7A
Tritanopia (blue-blind)
#A4254D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #9b217d;
/* rgb */ color: rgb(155, 33, 125);
/* oklch */ color: oklch(48.1% 0.182 340.2);
Tailwind
colors: {
  custom: {
    50: '#bc6ba3',
    500: '#9b217d',
    950: '#000000',
  },
}
SCSS
$custom: #9b217d;
$custom-light: #bc6ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#9b217d",
  "rgb": {
    "r": 155,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 314.754,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.48114,
    "c": 0.18236,
    "h": 340.2
  },
  "luminance": 0.09537
}

Semantic roles & 50–950 ramp

primary
#9B217D
secondary
#58C071
accent
#E86940
background
#FCF6FA
surface
#F8ECF3
border
#D1C7CD
text
#12070F
muted
#817A7F

Preview Lab

Preview with #9B217D

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

Preview Lab → · Contrast checker → · Palette generator →

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