#821E9C#821E9C

#821E9C is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.8% C 0.197 H 318.0°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#821E9C
RGBrgb(130, 30, 156)
HSLhsl(288, 68%, 36%)
HSVhsv(288, 81%, 61%)
CMYKcmyk(16.7%, 80.8%, 0%, 38.8%)
CIE-LABlab(34.14, 58.05, -46.77)
CIE-LCHlch(34.14, 74.55, 321.14°)
OKLaboklab(45.82% 0.1464 -0.1317)
OKLCHoklch(45.82% 0.197 318)
XYZxyz(15.6701, 8.0754, 32.1793)
Luminance0.0808 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#821E9C #389C1E
analogous
#431E9C #821E9C #9C1E77
triadic
#821E9C #9C821E #1E9C82
tetradic
#821E9C #9C431E #389C1E #1E779C
square
#821E9C #9C431E #389C1E #1E779C
split-complementary
#821E9C #779C1E #1E9C43
monochromatic
#2C0A35 #571469 #821E9C #AD28CF #C256DE

Accessibility & contrast

On white

8.03
#821E9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#821E9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #821E9C
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##821E9C#FFFFFF#000000##FFFFFF
##821E9C1.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9F
Deuteranopia (green-blind)
#245399
Tritanopia (blue-blind)
#813B5E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #821e9c;
/* rgb */ color: rgb(130, 30, 156);
/* oklch */ color: oklch(45.8% 0.197 318.0);
Tailwind
colors: {
  custom: {
    50: '#aa67ba',
    500: '#821e9c',
    950: '#000000',
  },
}
SCSS
$custom: #821e9c;
$custom-light: #aa67ba;
$custom-dark: #000000;
JSON
{
  "hex": "#821e9c",
  "rgb": {
    "r": 130,
    "g": 30,
    "b": 156
  },
  "hsl": {
    "h": 287.619,
    "s": 67.742,
    "l": 36.471
  },
  "oklch": {
    "l": 0.45822,
    "c": 0.19688,
    "h": 318
  },
  "luminance": 0.08075
}

Semantic roles & 50–950 ramp

primary
#821E9C
secondary
#6BC254
accent
#EB3D61
background
#FAF6FB
surface
#F5EBF6
border
#CFC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #821E9C

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

Preview Lab → · Contrast checker → · Palette generator →

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