#9B217C#9B217C

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

Color values

HEX#9B217C
RGBrgb(155, 33, 124)
HSLhsl(315, 65%, 37%)
HSVhsv(315, 79%, 61%)
CMYKcmyk(0%, 78.7%, 20%, 39.2%)
CIE-LABlab(36.95, 57.28, -22.33)
CIE-LCHlch(36.95, 61.48, 338.70°)
OKLaboklab(48.07% 0.1714 -0.0602)
OKLCHoklch(48.07% 0.182 340.6)
XYZxyz(17.7001, 9.5133, 19.9690)
Luminance0.0951 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B217C #219B40
analogous
#7D219B #9B217C #9B213F
triadic
#9B217C #7C9B21 #217C9B
tetradic
#9B217C #9B7D21 #219B40 #213F9B
square
#9B217C #9B7D21 #219B40 #213F9B
split-complementary
#9B217C #3F9B21 #219B7D
monochromatic
#360C2B #691654 #9B217C #CD2CA4 #DC5ABB

Accessibility & contrast

On white

7.24
#9B217C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #9B217C
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B217C#FFFFFF#000000##FFFFFF
##9B217C1.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4B7E
Deuteranopia (green-blind)
#535E79
Tritanopia (blue-blind)
#A5254D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #9b217c;
/* rgb */ color: rgb(155, 33, 124);
/* oklch */ color: oklch(48.1% 0.182 340.6);
Tailwind
colors: {
  custom: {
    50: '#bc6ba2',
    500: '#9b217c',
    950: '#000000',
  },
}
SCSS
$custom: #9b217c;
$custom-light: #bc6ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#9b217c",
  "rgb": {
    "r": 155,
    "g": 33,
    "b": 124
  },
  "hsl": {
    "h": 315.246,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.48065,
    "c": 0.18171,
    "h": 340.6
  },
  "luminance": 0.09512
}

Semantic roles & 50–950 ramp

primary
#9B217C
secondary
#58C072
accent
#E86B40
background
#FCF6FA
surface
#F8ECF3
border
#D1C7CD
text
#12070F
muted
#817A7F

Preview Lab

Preview with #9B217C

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

Preview Lab → · Contrast checker → · Palette generator →

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