#821D9C#821D9C

#821D9C is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.8% C 0.198 H 318.1°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#821D9C
RGBrgb(130, 29, 156)
HSLhsl(288, 69%, 36%)
HSVhsv(288, 81%, 61%)
CMYKcmyk(16.7%, 81.4%, 0%, 38.8%)
CIE-LABlab(34.04, 58.35, -46.94)
CIE-LCHlch(34.04, 74.89, 321.18°)
OKLaboklab(45.75% 0.1471 -0.1321)
OKLCHoklch(45.75% 0.198 318.1)
XYZxyz(15.6452, 8.0256, 32.1710)
Luminance0.0803 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#821D9C #379C1D
analogous
#431D9C #821D9C #9C1D77
triadic
#821D9C #9C821D #1D9C82
tetradic
#821D9C #9C431D #379C1D #1D779C
square
#821D9C #9C431D #379C1D #1D779C
split-complementary
#821D9C #779C1D #1D9C43
monochromatic
#2C0A35 #571368 #821D9C #AD27D0 #C354DF

Accessibility & contrast

On white

8.06
#821D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#821D9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #821D9C
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##821D9C#FFFFFF#000000##FFFFFF
##821D9C1.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #821d9c;
/* rgb */ color: rgb(130, 29, 156);
/* oklch */ color: oklch(45.8% 0.198 318.1);
Tailwind
colors: {
  custom: {
    50: '#aa67ba',
    500: '#821d9c',
    950: '#000000',
  },
}
SCSS
$custom: #821d9c;
$custom-light: #aa67ba;
$custom-dark: #000000;
JSON
{
  "hex": "#821d9c",
  "rgb": {
    "r": 130,
    "g": 29,
    "b": 156
  },
  "hsl": {
    "h": 287.717,
    "s": 68.649,
    "l": 36.275
  },
  "oklch": {
    "l": 0.4575,
    "c": 0.19777,
    "h": 318.1
  },
  "luminance": 0.08025
}

Semantic roles & 50–950 ramp

primary
#821D9C
secondary
#69C252
accent
#EB3C60
background
#FAF6FB
surface
#F5EBF6
border
#CFC6D0
text
#110712
muted
#807A81

Preview Lab

Preview with #821D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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