#8B21BD#8B21BD

#8B21BD is a mid, highly saturated purple. Relative luminance 0.103; OKLCH L 49.8% C 0.225 H 311.3°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#8B21BD
RGBrgb(139, 33, 189)
HSLhsl(281, 70%, 44%)
HSVhsv(281, 83%, 74%)
CMYKcmyk(26.5%, 82.5%, 0%, 25.9%)
CIE-LABlab(38.29, 65.23, -59.70)
CIE-LCHlch(38.29, 88.43, 317.54°)
OKLaboklab(49.78% 0.1489 -0.1694)
OKLCHoklch(49.78% 0.225 311.3)
XYZxyz(20.3749, 10.2513, 49.0396)
Luminance0.1025 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B21BD #53BD21
analogous
#3D21BD #8B21BD #BD21A1
triadic
#8B21BD #BD8B21 #21BD8B
tetradic
#8B21BD #BD3D21 #53BD21 #21A1BD
square
#8B21BD #BD3D21 #53BD21 #21A1BD
split-complementary
#8B21BD #A1BD21 #21BD3D
monochromatic
#3E0F55 #651889 #8B21BD #AA3EDD #C172E6

Accessibility & contrast

On white

6.88
#8B21BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#8B21BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B21BD
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B21BD#FFFFFF#000000##FFFFFF
##8B21BD1.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C1
Deuteranopia (green-blind)
#005CBA
Tritanopia (blue-blind)
#844A71
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8b21bd;
/* rgb */ color: rgb(139, 33, 189);
/* oklch */ color: oklch(49.8% 0.225 311.3);
Tailwind
colors: {
  custom: {
    50: '#b26bd2',
    500: '#8b21bd',
    950: '#000000',
  },
}
SCSS
$custom: #8b21bd;
$custom-light: #b26bd2;
$custom-dark: #000000;
JSON
{
  "hex": "#8b21bd",
  "rgb": {
    "r": 139,
    "g": 33,
    "b": 189
  },
  "hsl": {
    "h": 280.769,
    "s": 70.27,
    "l": 43.529
  },
  "oklch": {
    "l": 0.49775,
    "c": 0.22548,
    "h": 311.3
  },
  "luminance": 0.10251
}

Semantic roles & 50–950 ramp

primary
#8B21BD
secondary
#8CCD6D
accent
#ED3B74
background
#FBF6FD
surface
#F6ECFA
border
#D0C7D3
text
#120814
muted
#817A83

Preview Lab

Preview with #8B21BD

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

Preview Lab → · Contrast checker → · Palette generator →

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