#8B218C#8B218C

#8B218C is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.4% C 0.185 H 327.6°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#8B218C
RGBrgb(139, 33, 140)
HSLhsl(299, 62%, 34%)
HSVhsv(299, 76%, 55%)
CMYKcmyk(0.7%, 76.4%, 0%, 45.1%)
CIE-LABlab(34.95, 56.05, -35.61)
CIE-LCHlch(34.95, 66.40, 327.57°)
OKLaboklab(46.36% 0.1559 -0.0988)
OKLCHoklch(46.36% 0.185 327.6)
XYZxyz(15.9247, 8.4713, 25.6022)
Luminance0.0847 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B218C #228C21
analogous
#56218C #8B218C #8C2158
triadic
#8B218C #8C8B21 #218C8B
tetradic
#8B218C #8C5621 #228C21 #21588C
square
#8B218C #8C5621 #228C21 #21588C
split-complementary
#8B218C #588C21 #218C56
monochromatic
#290A29 #5A155A #8B218C #BC2DBE #D551D6

Accessibility & contrast

On white

7.80
#8B218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8B218C
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B218C#FFFFFF#000000##FFFFFF
##8B218C1.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05498F
Deuteranopia (green-blind)
#3E5789
Tritanopia (blue-blind)
#8F3355
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8b218c;
/* rgb */ color: rgb(139, 33, 140);
/* oklch */ color: oklch(46.4% 0.185 327.6);
Tailwind
colors: {
  custom: {
    50: '#b069ae',
    500: '#8b218c',
    950: '#000000',
  },
}
SCSS
$custom: #8b218c;
$custom-light: #b069ae;
$custom-dark: #000000;
JSON
{
  "hex": "#8b218c",
  "rgb": {
    "r": 139,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 299.439,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.46359,
    "c": 0.18457,
    "h": 327.6
  },
  "luminance": 0.0847
}

Semantic roles & 50–950 ramp

primary
#8B218C
secondary
#50B94F
accent
#E54344
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8B218C

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

Preview Lab → · Contrast checker → · Palette generator →

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