#8B21AE#8B21AE

#8B21AE is a mid, highly saturated purple. Relative luminance 0.096; OKLCH L 48.6% C 0.213 H 315.7°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#8B21AE
RGBrgb(139, 33, 174)
HSLhsl(285, 68%, 41%)
HSVhsv(285, 81%, 68%)
CMYKcmyk(20.1%, 81%, 0%, 31.8%)
CIE-LABlab(37.18, 62.27, -52.63)
CIE-LCHlch(37.18, 81.53, 319.80°)
OKLaboklab(48.65% 0.1522 -0.1486)
OKLCHoklch(48.65% 0.213 315.7)
XYZxyz(18.8301, 9.6334, 40.9037)
Luminance0.0963 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B21AE #44AE21
analogous
#4421AE #8B21AE #AE218B
triadic
#8B21AE #AE8B21 #21AE8B
tetradic
#8B21AE #AE4421 #44AE21 #218BAE
square
#8B21AE #AE4421 #44AE21 #218BAE
split-complementary
#8B21AE #8BAE21 #21AE44
monochromatic
#390D47 #62177B #8B21AE #B034D8 #C467E2

Accessibility & contrast

On white

7.18
#8B21AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#8B21AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B21AE
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B21AE#FFFFFF#000000##FFFFFF
##8B21AE1.007.182.937.18
#FFFFFF7.181.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B2
Deuteranopia (green-blind)
#1C5AAB
Tritanopia (blue-blind)
#884369
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8b21ae;
/* rgb */ color: rgb(139, 33, 174);
/* oklch */ color: oklch(48.6% 0.213 315.7);
Tailwind
colors: {
  custom: {
    50: '#b16bc7',
    500: '#8b21ae',
    950: '#000000',
  },
}
SCSS
$custom: #8b21ae;
$custom-light: #b16bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#8b21ae",
  "rgb": {
    "r": 139,
    "g": 33,
    "b": 174
  },
  "hsl": {
    "h": 285.106,
    "s": 68.116,
    "l": 40.588
  },
  "oklch": {
    "l": 0.48647,
    "c": 0.21266,
    "h": 315.7
  },
  "luminance": 0.09633
}

Semantic roles & 50–950 ramp

primary
#8B21AE
secondary
#7CC863
accent
#EB3D68
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110713
muted
#807A82

Preview Lab

Preview with #8B21AE

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

Preview Lab → · Contrast checker → · Palette generator →

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