#8B218D#8B218D

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

Color values

HEX#8B218D
RGBrgb(139, 33, 141)
HSLhsl(299, 62%, 34%)
HSVhsv(299, 77%, 55%)
CMYKcmyk(1.4%, 76.6%, 0%, 44.7%)
CIE-LABlab(35.01, 56.22, -36.13)
CIE-LCHlch(35.01, 66.83, 327.27°)
OKLaboklab(46.42% 0.1559 -0.1003)
OKLCHoklch(46.42% 0.185 327.2)
XYZxyz(15.9988, 8.5009, 25.9923)
Luminance0.0850 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B218D #238D21
analogous
#55218D #8B218D #8D2159
triadic
#8B218D #8D8B21 #218D8B
tetradic
#8B218D #8D5521 #238D21 #21598D
square
#8B218D #8D5521 #238D21 #21598D
split-complementary
#8B218D #598D21 #218D55
monochromatic
#290A2A #5A155B #8B218D #BC2DBF #D452D6

Accessibility & contrast

On white

7.78
#8B218D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#8B218D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B218D
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B218D#FFFFFF#000000##FFFFFF
##8B218D1.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#024A90
Deuteranopia (green-blind)
#3D578A
Tritanopia (blue-blind)
#8F3356
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8b218d;
/* rgb */ color: rgb(139, 33, 141);
/* oklch */ color: oklch(46.4% 0.185 327.2);
Tailwind
colors: {
  custom: {
    50: '#b069af',
    500: '#8b218d',
    950: '#000000',
  },
}
SCSS
$custom: #8b218d;
$custom-light: #b069af;
$custom-dark: #000000;
JSON
{
  "hex": "#8b218d",
  "rgb": {
    "r": 139,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 298.889,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.4642,
    "c": 0.18537,
    "h": 327.2
  },
  "luminance": 0.085
}

Semantic roles & 50–950 ramp

primary
#8B218D
secondary
#52BA50
accent
#E54346
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8B218D

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

Preview Lab → · Contrast checker → · Palette generator →

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