#8B218A#8B218A

#8B218A is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.2% C 0.183 H 328.5°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#8B218A
RGBrgb(139, 33, 138)
HSLhsl(301, 62%, 34%)
HSVhsv(301, 76%, 55%)
CMYKcmyk(0%, 76.3%, 0.7%, 45.5%)
CIE-LABlab(34.83, 55.71, -34.56)
CIE-LCHlch(34.83, 65.56, 328.19°)
OKLaboklab(46.24% 0.156 -0.0957)
OKLCHoklch(46.24% 0.183 328.5)
XYZxyz(15.7786, 8.4128, 24.8326)
Luminance0.0841 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B218A #218B22
analogous
#57218B #8B218A #8B2155
triadic
#8B218A #8A8B21 #218A8B
tetradic
#8B218A #8B5721 #218B22 #21558B
square
#8B218A #8B5721 #218B22 #21558B
split-complementary
#8B218A #558B21 #218B57
monochromatic
#280A28 #5A1559 #8B218A #BC2DBB #D651D4

Accessibility & contrast

On white

7.83
#8B218A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#8B218A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B218A
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B218A#FFFFFF#000000##FFFFFF
##8B218A1.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B498D
Deuteranopia (green-blind)
#3F5787
Tritanopia (blue-blind)
#903254
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8b218a;
/* rgb */ color: rgb(139, 33, 138);
/* oklch */ color: oklch(46.2% 0.183 328.5);
Tailwind
colors: {
  custom: {
    50: '#b069ac',
    500: '#8b218a',
    950: '#000000',
  },
}
SCSS
$custom: #8b218a;
$custom-light: #b069ac;
$custom-dark: #000000;
JSON
{
  "hex": "#8b218a",
  "rgb": {
    "r": 139,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 300.566,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.46237,
    "c": 0.18299,
    "h": 328.5
  },
  "luminance": 0.08412
}

Semantic roles & 50–950 ramp

primary
#8B218A
secondary
#4FB950
accent
#E54543
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8B218A

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

Preview Lab → · Contrast checker → · Palette generator →

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