#821EA6#821EA6

#821EA6 is a mid, highly saturated purple. Relative luminance 0.084; OKLCH L 46.6% C 0.205 H 314.7°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#821EA6
RGBrgb(130, 30, 166)
HSLhsl(284, 69%, 38%)
HSVhsv(284, 82%, 65%)
CMYKcmyk(21.7%, 81.9%, 0%, 34.9%)
CIE-LABlab(34.86, 60.00, -51.66)
CIE-LCHlch(34.86, 79.17, 319.27°)
OKLaboklab(46.56% 0.1445 -0.146)
OKLCHoklch(46.56% 0.205 314.7)
XYZxyz(16.5520, 8.4282, 36.8239)
Luminance0.0843 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#821EA6 #42A61E
analogous
#3E1EA6 #821EA6 #A61E86
triadic
#821EA6 #A6821E #1EA682
tetradic
#821EA6 #A63E1E #42A61E #1E86A6
square
#821EA6 #A63E1E #42A61E #1E86A6
split-complementary
#821EA6 #86A61E #1EA63E
monochromatic
#310B3E #591572 #821EA6 #AA29D8 #BE5DE2

Accessibility & contrast

On white

7.82
#821EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#821EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #821EA6
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##821EA6#FFFFFF#000000##FFFFFF
##821EA61.007.822.697.82
#FFFFFF7.821.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAA
Deuteranopia (green-blind)
#1254A3
Tritanopia (blue-blind)
#7F4063
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #821ea6;
/* rgb */ color: rgb(130, 30, 166);
/* oklch */ color: oklch(46.6% 0.205 314.7);
Tailwind
colors: {
  custom: {
    50: '#ab68c1',
    500: '#821ea6',
    950: '#000000',
  },
}
SCSS
$custom: #821ea6;
$custom-light: #ab68c1;
$custom-dark: #000000;
JSON
{
  "hex": "#821ea6",
  "rgb": {
    "r": 130,
    "g": 30,
    "b": 166
  },
  "hsl": {
    "h": 284.118,
    "s": 69.388,
    "l": 38.431
  },
  "oklch": {
    "l": 0.46555,
    "c": 0.20542,
    "h": 314.7
  },
  "luminance": 0.08428
}

Semantic roles & 50–950 ramp

primary
#821EA6
secondary
#77C65A
accent
#EC3C6A
background
#FBF6FC
surface
#F6EBF8
border
#D0C6D1
text
#110712
muted
#807A81

Preview Lab

Preview with #821EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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