#8B218F#8B218F

#8B218F is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.5% C 0.187 H 326.5°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#8B218F
RGBrgb(139, 33, 143)
HSLhsl(298, 63%, 35%)
HSVhsv(298, 77%, 56%)
CMYKcmyk(2.8%, 76.9%, 0%, 43.9%)
CIE-LABlab(35.12, 56.56, -37.17)
CIE-LCHlch(35.12, 67.68, 326.69°)
OKLaboklab(46.54% 0.1558 -0.1033)
OKLCHoklch(46.54% 0.187 326.5)
XYZxyz(16.1489, 8.5610, 26.7831)
Luminance0.0856 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B218F #258F21
analogous
#54218F #8B218F #8F215C
triadic
#8B218F #8F8B21 #218F8B
tetradic
#8B218F #8F5421 #258F21 #215C8F
square
#8B218F #8F5421 #258F21 #215C8F
split-complementary
#8B218F #5C8F21 #218F54
monochromatic
#2A0A2C #5B165D #8B218F #BB2CC1 #D353D7

Accessibility & contrast

On white

7.74
#8B218F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#8B218F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B218F
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B218F#FFFFFF#000000##FFFFFF
##8B218F1.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A92
Deuteranopia (green-blind)
#3C578C
Tritanopia (blue-blind)
#8F3457
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8b218f;
/* rgb */ color: rgb(139, 33, 143);
/* oklch */ color: oklch(46.5% 0.187 326.5);
Tailwind
colors: {
  custom: {
    50: '#b069b0',
    500: '#8b218f',
    950: '#000000',
  },
}
SCSS
$custom: #8b218f;
$custom-light: #b069b0;
$custom-dark: #000000;
JSON
{
  "hex": "#8b218f",
  "rgb": {
    "r": 139,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 297.818,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.46544,
    "c": 0.18697,
    "h": 326.5
  },
  "luminance": 0.0856
}

Semantic roles & 50–950 ramp

primary
#8B218F
secondary
#55BB51
accent
#E64248
background
#FBF6FA
surface
#F6ECF5
border
#D0C7CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #8B218F

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

Preview Lab → · Contrast checker → · Palette generator →

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