#821B7D#821B7D

#821B7D is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.6% C 0.174 H 330.3°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#821B7D
RGBrgb(130, 27, 125)
HSLhsl(303, 66%, 31%)
HSVhsv(303, 79%, 51%)
CMYKcmyk(0%, 79.2%, 3.8%, 49%)
CIE-LABlab(31.83, 53.40, -31.32)
CIE-LCHlch(31.83, 61.91, 329.61°)
OKLaboklab(43.55% 0.1515 -0.0865)
OKLCHoklch(43.55% 0.174 330.3)
XYZxyz(13.2995, 7.0114, 20.0509)
Luminance0.0701 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#821B7D #1B8220
analogous
#531B82 #821B7D #821B49
triadic
#821B7D #7D821B #1B7D82
tetradic
#821B7D #82531B #1B8220 #1B4982
square
#821B7D #82531B #1B8220 #1B4982
split-complementary
#821B7D #49821B #1B8253
monochromatic
#1D061C #4F104C #821B7D #B526AE #D740D0

Accessibility & contrast

On white

8.74
#821B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#821B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #821B7D
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##821B7D#FFFFFF#000000##FFFFFF
##821B7D1.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C4280
Deuteranopia (green-blind)
#3C507B
Tritanopia (blue-blind)
#872A4B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #821b7d;
/* rgb */ color: rgb(130, 27, 125);
/* oklch */ color: oklch(43.6% 0.174 330.3);
Tailwind
colors: {
  custom: {
    50: '#aa65a3',
    500: '#821b7d',
    950: '#000000',
  },
}
SCSS
$custom: #821b7d;
$custom-light: #aa65a3;
$custom-dark: #000000;
JSON
{
  "hex": "#821b7d",
  "rgb": {
    "r": 130,
    "g": 27,
    "b": 125
  },
  "hsl": {
    "h": 302.913,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.43551,
    "c": 0.17444,
    "h": 330.3
  },
  "luminance": 0.0701
}

Semantic roles & 50–950 ramp

primary
#821B7D
secondary
#43B649
accent
#E9473F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #821B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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