#9B217F#9B217F

#9B217F is a mid, vivid pink. Relative luminance 0.096; OKLCH L 48.2% C 0.184 H 339.3°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#9B217F
RGBrgb(155, 33, 127)
HSLhsl(314, 65%, 37%)
HSVhsv(314, 79%, 61%)
CMYKcmyk(0%, 78.7%, 18.1%, 39.2%)
CIE-LABlab(37.10, 57.69, -23.98)
CIE-LCHlch(37.10, 62.48, 337.43°)
OKLaboklab(48.21% 0.1718 -0.0649)
OKLCHoklch(48.21% 0.184 339.3)
XYZxyz(17.8927, 9.5904, 20.9834)
Luminance0.0959 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B217F #219B3D
analogous
#7A219B #9B217F #9B2142
triadic
#9B217F #7F9B21 #217F9B
tetradic
#9B217F #9B7A21 #219B3D #21429B
square
#9B217F #9B7A21 #219B3D #21429B
split-complementary
#9B217F #429B21 #219B7A
monochromatic
#360C2C #691656 #9B217F #CD2CA8 #DC5ABE

Accessibility & contrast

On white

7.20
#9B217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#9B217F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9B217F
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B217F#FFFFFF#000000##FFFFFF
##9B217F1.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9b217f;
/* rgb */ color: rgb(155, 33, 127);
/* oklch */ color: oklch(48.2% 0.184 339.3);
Tailwind
colors: {
  custom: {
    50: '#bc6ba4',
    500: '#9b217f',
    950: '#000000',
  },
}
SCSS
$custom: #9b217f;
$custom-light: #bc6ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#9b217f",
  "rgb": {
    "r": 155,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 313.77,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.48214,
    "c": 0.18368,
    "h": 339.3
  },
  "luminance": 0.09589
}

Semantic roles & 50–950 ramp

primary
#9B217F
secondary
#58C070
accent
#E86640
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#12070F
muted
#817A7F

Preview Lab

Preview with #9B217F

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

Preview Lab → · Contrast checker → · Palette generator →

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