#8B21B2#8B21B2

#8B21B2 is a mid, highly saturated purple. Relative luminance 0.098; OKLCH L 48.9% C 0.216 H 314.5°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#8B21B2
RGBrgb(139, 33, 178)
HSLhsl(284, 69%, 41%)
HSVhsv(284, 81%, 70%)
CMYKcmyk(21.9%, 81.5%, 0%, 30.2%)
CIE-LABlab(37.47, 63.05, -54.54)
CIE-LCHlch(37.47, 83.37, 319.14°)
OKLaboklab(48.94% 0.1514 -0.1542)
OKLCHoklch(48.94% 0.216 314.5)
XYZxyz(19.2258, 9.7917, 42.9881)
Luminance0.0979 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B21B2 #48B221
analogous
#4321B2 #8B21B2 #B22191
triadic
#8B21B2 #B28B21 #21B28B
tetradic
#8B21B2 #B24321 #48B221 #2191B2
square
#8B21B2 #B24321 #48B221 #2191B2
split-complementary
#8B21B2 #91B221 #21B243
monochromatic
#3A0E4B #63177E #8B21B2 #AE36DA #C36AE3

Accessibility & contrast

On white

7.10
#8B21B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#8B21B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B21B2
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B21B2#FFFFFF#000000##FFFFFF
##8B21B21.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B6
Deuteranopia (green-blind)
#135BAF
Tritanopia (blue-blind)
#87456B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8b21b2;
/* rgb */ color: rgb(139, 33, 178);
/* oklch */ color: oklch(48.9% 0.216 314.5);
Tailwind
colors: {
  custom: {
    50: '#b26bca',
    500: '#8b21b2',
    950: '#000000',
  },
}
SCSS
$custom: #8b21b2;
$custom-light: #b26bca;
$custom-dark: #000000;
JSON
{
  "hex": "#8b21b2",
  "rgb": {
    "r": 139,
    "g": 33,
    "b": 178
  },
  "hsl": {
    "h": 283.862,
    "s": 68.72,
    "l": 41.373
  },
  "oklch": {
    "l": 0.48941,
    "c": 0.21607,
    "h": 314.5
  },
  "luminance": 0.09791
}

Semantic roles & 50–950 ramp

primary
#8B21B2
secondary
#80C966
accent
#EC3C6B
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110713
muted
#807A82

Preview Lab

Preview with #8B21B2

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

Preview Lab → · Contrast checker → · Palette generator →

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