#821E8A#821E8A

#821E8A is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.6% C 0.182 H 324.7°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#821E8A
RGBrgb(130, 30, 138)
HSLhsl(296, 64%, 33%)
HSVhsv(296, 78%, 54%)
CMYKcmyk(5.8%, 78.3%, 0%, 45.9%)
CIE-LABlab(32.94, 54.71, -37.66)
CIE-LCHlch(32.94, 66.42, 325.46°)
OKLaboklab(44.59% 0.1484 -0.105)
OKLCHoklch(44.59% 0.182 324.7)
XYZxyz(14.2573, 7.5103, 24.7385)
Luminance0.0751 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#821E8A #268A1E
analogous
#4C1E8A #821E8A #8A1E5C
triadic
#821E8A #8A821E #1E8A82
tetradic
#821E8A #8A4C1E #268A1E #1E5C8A
square
#821E8A #8A4C1E #268A1E #1E5C8A
split-complementary
#821E8A #5C8A1E #1E8A4C
monochromatic
#230825 #531358 #821E8A #B129BC #CD4BD8

Accessibility & contrast

On white

8.39
#821E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#821E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #821E8A
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##821E8A#FFFFFF#000000##FFFFFF
##821E8A1.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468D
Deuteranopia (green-blind)
#355187
Tritanopia (blue-blind)
#853253
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #821e8a;
/* rgb */ color: rgb(130, 30, 138);
/* oklch */ color: oklch(44.6% 0.182 324.7);
Tailwind
colors: {
  custom: {
    50: '#aa66ad',
    500: '#821e8a',
    950: '#000000',
  },
}
SCSS
$custom: #821e8a;
$custom-light: #aa66ad;
$custom-dark: #000000;
JSON
{
  "hex": "#821e8a",
  "rgb": {
    "r": 130,
    "g": 30,
    "b": 138
  },
  "hsl": {
    "h": 295.556,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.44593,
    "c": 0.18181,
    "h": 324.7
  },
  "luminance": 0.07509
}

Semantic roles & 50–950 ramp

primary
#821E8A
secondary
#52BA4A
accent
#E7414D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #821E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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