#821D9A#821D9A

#821D9A is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.6% C 0.196 H 318.8°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#821D9A
RGBrgb(130, 29, 154)
HSLhsl(288, 68%, 36%)
HSVhsv(288, 81%, 60%)
CMYKcmyk(15.6%, 81.2%, 0%, 39.6%)
CIE-LABlab(33.90, 57.97, -45.95)
CIE-LCHlch(33.90, 73.97, 321.60°)
OKLaboklab(45.61% 0.1475 -0.1292)
OKLCHoklch(45.61% 0.196 318.8)
XYZxyz(15.4772, 7.9584, 31.2865)
Luminance0.0796 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#821D9A #359A1D
analogous
#431D9A #821D9A #9A1D73
triadic
#821D9A #9A821D #1D9A82
tetradic
#821D9A #9A431D #359A1D #1D739A
square
#821D9A #9A431D #359A1D #1D739A
split-complementary
#821D9A #739A1D #1D9A43
monochromatic
#2B0A33 #571366 #821D9A #AD27CE #C453DF

Accessibility & contrast

On white

8.10
#821D9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#821D9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #821D9A
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##821D9A#FFFFFF#000000##FFFFFF
##821D9A1.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499D
Deuteranopia (green-blind)
#255397
Tritanopia (blue-blind)
#823A5C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #821d9a;
/* rgb */ color: rgb(130, 29, 154);
/* oklch */ color: oklch(45.6% 0.196 318.8);
Tailwind
colors: {
  custom: {
    50: '#aa67b8',
    500: '#821d9a',
    950: '#000000',
  },
}
SCSS
$custom: #821d9a;
$custom-light: #aa67b8;
$custom-dark: #000000;
JSON
{
  "hex": "#821d9a",
  "rgb": {
    "r": 130,
    "g": 29,
    "b": 154
  },
  "hsl": {
    "h": 288.48,
    "s": 68.306,
    "l": 35.882
  },
  "oklch": {
    "l": 0.45607,
    "c": 0.19608,
    "h": 318.8
  },
  "luminance": 0.07958
}

Semantic roles & 50–950 ramp

primary
#821D9A
secondary
#67C251
accent
#EB3D5E
background
#FAF6FB
surface
#F5EBF6
border
#CFC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #821D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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