#8B218B#8B218B

#8B218B is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.3% C 0.184 H 328.1°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#8B218B
RGBrgb(139, 33, 139)
HSLhsl(300, 62%, 34%)
HSVhsv(300, 76%, 55%)
CMYKcmyk(0%, 76.3%, 0%, 45.5%)
CIE-LABlab(34.89, 55.88, -35.08)
CIE-LCHlch(34.89, 65.98, 327.88°)
OKLaboklab(46.3% 0.1559 -0.0972)
OKLCHoklch(46.3% 0.184 328.1)
XYZxyz(15.8513, 8.4419, 25.2157)
Luminance0.0844 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B218B #218B21
analogous
#56218B #8B218B #8B2156
triadic
#8B218B #8B8B21 #218B8B
tetradic
#8B218B #8B5621 #218B21 #21568B
square
#8B218B #8B5621 #218B21 #21568B
split-complementary
#8B218B #568B21 #218B56
monochromatic
#280A28 #5A155A #8B218B #BC2DBC #D651D6

Accessibility & contrast

On white

7.81
#8B218B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#8B218B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B218B
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B218B#FFFFFF#000000##FFFFFF
##8B218B1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08498E
Deuteranopia (green-blind)
#3F5788
Tritanopia (blue-blind)
#903255
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8b218b;
/* rgb */ color: rgb(139, 33, 139);
/* oklch */ color: oklch(46.3% 0.184 328.1);
Tailwind
colors: {
  custom: {
    50: '#b069ad',
    500: '#8b218b',
    950: '#000000',
  },
}
SCSS
$custom: #8b218b;
$custom-light: #b069ad;
$custom-dark: #000000;
JSON
{
  "hex": "#8b218b",
  "rgb": {
    "r": 139,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 300,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.46298,
    "c": 0.18378,
    "h": 328.1
  },
  "luminance": 0.08441
}

Semantic roles & 50–950 ramp

primary
#8B218B
secondary
#4FB94F
accent
#E54343
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8B218B

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

Preview Lab → · Contrast checker → · Palette generator →

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