#9B218B#9B218B

#9B218B is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.8% C 0.192 H 334.2°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#9B218B
RGBrgb(155, 33, 139)
HSLhsl(308, 65%, 37%)
HSVhsv(308, 79%, 61%)
CMYKcmyk(0%, 78.7%, 10.3%, 39.2%)
CIE-LABlab(37.70, 59.45, -30.45)
CIE-LCHlch(37.70, 66.79, 332.88°)
OKLaboklab(48.85% 0.1729 -0.0834)
OKLCHoklch(48.85% 0.192 334.2)
XYZxyz(18.7218, 9.9220, 25.3502)
Luminance0.0992 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B218B #219B31
analogous
#6E219B #9B218B #9B214E
triadic
#9B218B #8B9B21 #218B9B
tetradic
#9B218B #9B6E21 #219B31 #214E9B
square
#9B218B #9B6E21 #219B31 #214E9B
split-complementary
#9B218B #4E9B21 #219B6E
monochromatic
#360C31 #69165E #9B218B #CD2CB8 #DC5ACB

Accessibility & contrast

On white

7.04
#9B218B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#9B218B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9B218B
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B218B#FFFFFF#000000##FFFFFF
##9B218B1.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4D8E
Deuteranopia (green-blind)
#4D5F88
Tritanopia (blue-blind)
#A32D55
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9b218b;
/* rgb */ color: rgb(155, 33, 139);
/* oklch */ color: oklch(48.8% 0.192 334.2);
Tailwind
colors: {
  custom: {
    50: '#bc6bad',
    500: '#9b218b',
    950: '#000000',
  },
}
SCSS
$custom: #9b218b;
$custom-light: #bc6bad;
$custom-dark: #000000;
JSON
{
  "hex": "#9b218b",
  "rgb": {
    "r": 155,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 307.869,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.48846,
    "c": 0.19194,
    "h": 334.2
  },
  "luminance": 0.0992
}

Semantic roles & 50–950 ramp

primary
#9B218B
secondary
#58C065
accent
#E85640
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#120810
muted
#817A7F

Preview Lab

Preview with #9B218B

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

Preview Lab → · Contrast checker → · Palette generator →

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