#821E7D#821E7D

#821E7D is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.8% C 0.171 H 330.3°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#821E7D
RGBrgb(130, 30, 125)
HSLhsl(303, 63%, 31%)
HSVhsv(303, 77%, 51%)
CMYKcmyk(0%, 76.9%, 3.8%, 49%)
CIE-LABlab(32.16, 52.46, -30.80)
CIE-LCHlch(32.16, 60.84, 329.59°)
OKLaboklab(43.78% 0.1488 -0.085)
OKLCHoklch(43.78% 0.171 330.3)
XYZxyz(13.3718, 7.1561, 20.0751)
Luminance0.0716 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#821E7D #1E8223
analogous
#551E82 #821E7D #821E4B
triadic
#821E7D #7D821E #1E7D82
tetradic
#821E7D #82551E #1E8223 #1E4B82
square
#821E7D #82551E #1E8223 #1E4B82
split-complementary
#821E7D #4B821E #1E8255
monochromatic
#1F071D #50134D #821E7D #B429AD #D446CD

Accessibility & contrast

On white

8.64
#821E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#821E7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #821E7D
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##821E7D#FFFFFF#000000##FFFFFF
##821E7D1.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114380
Deuteranopia (green-blind)
#3D507B
Tritanopia (blue-blind)
#872C4C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #821e7d;
/* rgb */ color: rgb(130, 30, 125);
/* oklch */ color: oklch(43.8% 0.171 330.3);
Tailwind
colors: {
  custom: {
    50: '#aa66a3',
    500: '#821e7d',
    950: '#000000',
  },
}
SCSS
$custom: #821e7d;
$custom-light: #aa66a3;
$custom-dark: #000000;
JSON
{
  "hex": "#821e7d",
  "rgb": {
    "r": 130,
    "g": 30,
    "b": 125
  },
  "hsl": {
    "h": 303,
    "s": 62.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.43784,
    "c": 0.17136,
    "h": 330.3
  },
  "luminance": 0.07155
}

Semantic roles & 50–950 ramp

primary
#821E7D
secondary
#47B54C
accent
#E64A42
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #821E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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