#821EA1#821EA1

#821EA1 is a mid, highly saturated purple. Relative luminance 0.082; OKLCH L 46.2% C 0.201 H 316.3°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#821EA1
RGBrgb(130, 30, 161)
HSLhsl(286, 69%, 37%)
HSVhsv(286, 81%, 63%)
CMYKcmyk(19.3%, 81.4%, 0%, 36.9%)
CIE-LABlab(34.49, 59.01, -49.23)
CIE-LCHlch(34.49, 76.85, 320.17°)
OKLaboklab(46.18% 0.1455 -0.1389)
OKLCHoklch(46.18% 0.201 316.3)
XYZxyz(16.1022, 8.2483, 34.4552)
Luminance0.0825 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#821EA1 #3DA11E
analogous
#411EA1 #821EA1 #A11E7E
triadic
#821EA1 #A1821E #1EA182
tetradic
#821EA1 #A1411E #3DA11E #1E7EA1
square
#821EA1 #A1411E #3DA11E #1E7EA1
split-complementary
#821EA1 #7EA11E #1EA141
monochromatic
#2F0B3A #58146D #821EA1 #AC28D5 #C059E0

Accessibility & contrast

On white

7.93
#821EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#821EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #821EA1
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##821EA1#FFFFFF#000000##FFFFFF
##821EA11.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA4
Deuteranopia (green-blind)
#1C549E
Tritanopia (blue-blind)
#803D61
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #821ea1;
/* rgb */ color: rgb(130, 30, 161);
/* oklch */ color: oklch(46.2% 0.201 316.3);
Tailwind
colors: {
  custom: {
    50: '#ab67be',
    500: '#821ea1',
    950: '#000000',
  },
}
SCSS
$custom: #821ea1;
$custom-light: #ab67be;
$custom-dark: #000000;
JSON
{
  "hex": "#821ea1",
  "rgb": {
    "r": 130,
    "g": 30,
    "b": 161
  },
  "hsl": {
    "h": 285.802,
    "s": 68.586,
    "l": 37.451
  },
  "oklch": {
    "l": 0.46185,
    "c": 0.20114,
    "h": 316.3
  },
  "luminance": 0.08248
}

Semantic roles & 50–950 ramp

primary
#821EA1
secondary
#71C457
accent
#EB3C66
background
#FAF6FB
surface
#F5EBF7
border
#CFC6D0
text
#110712
muted
#807A81

Preview Lab

Preview with #821EA1

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

Preview Lab → · Contrast checker → · Palette generator →

#821EA1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva