#821D7E#821D7E

#821D7E is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.8% C 0.173 H 329.8°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#821D7E
RGBrgb(130, 29, 126)
HSLhsl(302, 64%, 31%)
HSVhsv(302, 78%, 51%)
CMYKcmyk(0%, 77.7%, 3.1%, 49%)
CIE-LABlab(32.11, 52.95, -31.51)
CIE-LCHlch(32.11, 61.62, 329.24°)
OKLaboklab(43.76% 0.1497 -0.0871)
OKLCHoklch(43.76% 0.173 329.8)
XYZxyz(13.4111, 7.1320, 20.4049)
Luminance0.0713 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#821D7E #1D8221
analogous
#531D82 #821D7E #821D4B
triadic
#821D7E #7E821D #1D7E82
tetradic
#821D7E #82531D #1D8221 #1D4B82
square
#821D7E #82531D #1D8221 #1D4B82
split-complementary
#821D7E #4B821D #1D8253
monochromatic
#1E071D #50124E #821D7E #B428AE #D544D0

Accessibility & contrast

On white

8.66
#821D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #821D7E
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##821D7E#FFFFFF#000000##FFFFFF
##821D7E1.008.662.438.66
#FFFFFF8.661.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4381
Deuteranopia (green-blind)
#3C507C
Tritanopia (blue-blind)
#872C4C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #821d7e;
/* rgb */ color: rgb(130, 29, 126);
/* oklch */ color: oklch(43.8% 0.173 329.8);
Tailwind
colors: {
  custom: {
    50: '#aa65a4',
    500: '#821d7e',
    950: '#000000',
  },
}
SCSS
$custom: #821d7e;
$custom-light: #aa65a4;
$custom-dark: #000000;
JSON
{
  "hex": "#821d7e",
  "rgb": {
    "r": 130,
    "g": 29,
    "b": 126
  },
  "hsl": {
    "h": 302.376,
    "s": 63.522,
    "l": 31.176
  },
  "oklch": {
    "l": 0.43764,
    "c": 0.1732,
    "h": 329.8
  },
  "luminance": 0.07131
}

Semantic roles & 50–950 ramp

primary
#821D7E
secondary
#46B54A
accent
#E74841
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #821D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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