#821E9D#821E9D

#821E9D is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.9% C 0.198 H 317.7°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#821E9D
RGBrgb(130, 30, 157)
HSLhsl(287, 68%, 37%)
HSVhsv(287, 81%, 62%)
CMYKcmyk(17.2%, 80.9%, 0%, 38.4%)
CIE-LABlab(34.21, 58.24, -47.27)
CIE-LCHlch(34.21, 75.01, 320.94°)
OKLaboklab(45.89% 0.1462 -0.1331)
OKLCHoklch(45.89% 0.198 317.7)
XYZxyz(15.7551, 8.1094, 32.6271)
Luminance0.0811 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#821E9D #399D1E
analogous
#431E9D #821E9D #9D1E79
triadic
#821E9D #9D821E #1E9D82
tetradic
#821E9D #9D431E #399D1E #1E799D
square
#821E9D #9D431E #399D1E #1E799D
split-complementary
#821E9D #799D1E #1E9D43
monochromatic
#2D0A36 #57146A #821E9D #AD28D0 #C257DF

Accessibility & contrast

On white

8.01
#821E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #821E9D
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##821E9D#FFFFFF#000000##FFFFFF
##821E9D1.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA0
Deuteranopia (green-blind)
#22539A
Tritanopia (blue-blind)
#813B5E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #821e9d;
/* rgb */ color: rgb(130, 30, 157);
/* oklch */ color: oklch(45.9% 0.198 317.7);
Tailwind
colors: {
  custom: {
    50: '#aa67bb',
    500: '#821e9d',
    950: '#000000',
  },
}
SCSS
$custom: #821e9d;
$custom-light: #aa67bb;
$custom-dark: #000000;
JSON
{
  "hex": "#821e9d",
  "rgb": {
    "r": 130,
    "g": 30,
    "b": 157
  },
  "hsl": {
    "h": 287.244,
    "s": 67.914,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45894,
    "c": 0.19773,
    "h": 317.7
  },
  "luminance": 0.08109
}

Semantic roles & 50–950 ramp

primary
#821E9D
secondary
#6CC254
accent
#EB3D62
background
#FAF6FB
surface
#F5EBF6
border
#CFC6D0
text
#110712
muted
#807A81

Preview Lab

Preview with #821E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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