#9B218A#9B218A

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

Color values

HEX#9B218A
RGBrgb(155, 33, 138)
HSLhsl(308, 65%, 37%)
HSVhsv(308, 79%, 61%)
CMYKcmyk(0%, 78.7%, 11%, 39.2%)
CIE-LABlab(37.65, 59.29, -29.92)
CIE-LCHlch(37.65, 66.41, 333.23°)
OKLaboklab(48.79% 0.1728 -0.0819)
OKLCHoklch(48.79% 0.191 334.6)
XYZxyz(18.6491, 9.8929, 24.9672)
Luminance0.0989 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B218A #219B32
analogous
#6F219B #9B218A #9B214D
triadic
#9B218A #8A9B21 #218A9B
tetradic
#9B218A #9B6F21 #219B32 #214D9B
square
#9B218A #9B6F21 #219B32 #214D9B
split-complementary
#9B218A #4D9B21 #219B6F
monochromatic
#360C30 #69165D #9B218A #CD2CB7 #DC5ACA

Accessibility & contrast

On white

7.05
#9B218A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #9B218A
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B218A#FFFFFF#000000##FFFFFF
##9B218A1.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4D8D
Deuteranopia (green-blind)
#4E5F87
Tritanopia (blue-blind)
#A32D54
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9b218a;
/* rgb */ color: rgb(155, 33, 138);
/* oklch */ color: oklch(48.8% 0.191 334.6);
Tailwind
colors: {
  custom: {
    50: '#bc6bac',
    500: '#9b218a',
    950: '#000000',
  },
}
SCSS
$custom: #9b218a;
$custom-light: #bc6bac;
$custom-dark: #000000;
JSON
{
  "hex": "#9b218a",
  "rgb": {
    "r": 155,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 308.361,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.48791,
    "c": 0.19123,
    "h": 334.6
  },
  "luminance": 0.09891
}

Semantic roles & 50–950 ramp

primary
#9B218A
secondary
#58C066
accent
#E85740
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#120810
muted
#817A7F

Preview Lab

Preview with #9B218A

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

Preview Lab → · Contrast checker → · Palette generator →

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