#821EA8#821EA8

#821EA8 is a mid, highly saturated purple. Relative luminance 0.085; OKLCH L 46.7% C 0.207 H 314.1°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#821EA8
RGBrgb(130, 30, 168)
HSLhsl(283, 70%, 39%)
HSVhsv(283, 82%, 66%)
CMYKcmyk(22.6%, 82.1%, 0%, 34.1%)
CIE-LABlab(35.01, 60.39, -52.62)
CIE-LCHlch(35.01, 80.10, 318.94°)
OKLaboklab(46.71% 0.1441 -0.1488)
OKLCHoklch(46.71% 0.207 314.1)
XYZxyz(16.7369, 8.5021, 37.7976)
Luminance0.0850 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#821EA8 #44A81E
analogous
#3D1EA8 #821EA8 #A81E89
triadic
#821EA8 #A8821E #1EA882
tetradic
#821EA8 #A83D1E #44A81E #1E89A8
square
#821EA8 #A83D1E #44A81E #1E89A8
split-complementary
#821EA8 #89A81E #1EA83D
monochromatic
#320B40 #5A1574 #821EA8 #A92AD9 #BE5EE2

Accessibility & contrast

On white

7.78
#821EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#821EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #821EA8
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##821EA8#FFFFFF#000000##FFFFFF
##821EA81.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAC
Deuteranopia (green-blind)
#0D55A5
Tritanopia (blue-blind)
#7E4165
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #821ea8;
/* rgb */ color: rgb(130, 30, 168);
/* oklch */ color: oklch(46.7% 0.207 314.1);
Tailwind
colors: {
  custom: {
    50: '#ab68c3',
    500: '#821ea8',
    950: '#000000',
  },
}
SCSS
$custom: #821ea8;
$custom-light: #ab68c3;
$custom-dark: #000000;
JSON
{
  "hex": "#821ea8",
  "rgb": {
    "r": 130,
    "g": 30,
    "b": 168
  },
  "hsl": {
    "h": 283.478,
    "s": 69.697,
    "l": 38.824
  },
  "oklch": {
    "l": 0.46705,
    "c": 0.20715,
    "h": 314.1
  },
  "luminance": 0.08502
}

Semantic roles & 50–950 ramp

primary
#821EA8
secondary
#79C75B
accent
#ED3B6C
background
#FBF6FC
surface
#F6EBF8
border
#D0C6D1
text
#110712
muted
#807A81

Preview Lab

Preview with #821EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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