#9B217B#9B217B

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

Color values

HEX#9B217B
RGBrgb(155, 33, 123)
HSLhsl(316, 65%, 37%)
HSVhsv(316, 79%, 61%)
CMYKcmyk(0%, 78.7%, 20.6%, 39.2%)
CIE-LABlab(36.91, 57.14, -21.78)
CIE-LCHlch(36.91, 61.15, 339.14°)
OKLaboklab(48.02% 0.1713 -0.0587)
OKLCHoklch(48.02% 0.181 341.1)
XYZxyz(17.6372, 9.4882, 19.6376)
Luminance0.0949 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B217B #219B41
analogous
#7E219B #9B217B #9B213E
triadic
#9B217B #7B9B21 #217B9B
tetradic
#9B217B #9B7E21 #219B41 #213E9B
square
#9B217B #9B7E21 #219B41 #213E9B
split-complementary
#9B217B #3E9B21 #219B7E
monochromatic
#360C2B #691653 #9B217B #CD2CA3 #DC5ABA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9B217B#FFFFFF#000000##FFFFFF
##9B217B1.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)
#2C4A7D
Deuteranopia (green-blind)
#545E78
Tritanopia (blue-blind)
#A5244C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #9b217b;
/* rgb */ color: rgb(155, 33, 123);
/* oklch */ color: oklch(48.0% 0.181 341.1);
Tailwind
colors: {
  custom: {
    50: '#bc6ba1',
    500: '#9b217b',
    950: '#000000',
  },
}
SCSS
$custom: #9b217b;
$custom-light: #bc6ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#9b217b",
  "rgb": {
    "r": 155,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 315.738,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.48016,
    "c": 0.18106,
    "h": 341.1
  },
  "luminance": 0.09486
}

Semantic roles & 50–950 ramp

primary
#9B217B
secondary
#58C073
accent
#E86C40
background
#FCF6F9
surface
#F8ECF2
border
#D1C7CC
text
#13070F
muted
#827A7E

Preview Lab

Preview with #9B217B

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

Preview Lab → · Contrast checker → · Palette generator →

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