#821E9A#821E9A

#821E9A is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.7% C 0.195 H 318.7°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#821E9A
RGBrgb(130, 30, 154)
HSLhsl(288, 67%, 36%)
HSVhsv(288, 81%, 60%)
CMYKcmyk(15.6%, 80.5%, 0%, 39.6%)
CIE-LABlab(34.00, 57.67, -45.78)
CIE-LCHlch(34.00, 73.63, 321.55°)
OKLaboklab(45.68% 0.1467 -0.1288)
OKLCHoklch(45.68% 0.195 318.7)
XYZxyz(15.5021, 8.0082, 31.2948)
Luminance0.0801 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#821E9A #369A1E
analogous
#441E9A #821E9A #9A1E74
triadic
#821E9A #9A821E #1E9A82
tetradic
#821E9A #9A441E #369A1E #1E749A
square
#821E9A #9A441E #369A1E #1E749A
split-complementary
#821E9A #749A1E #1E9A44
monochromatic
#2C0A34 #571467 #821E9A #AD28CD #C355DE

Accessibility & contrast

On white

8.07
#821E9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#821E9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #821E9A
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##821E9A#FFFFFF#000000##FFFFFF
##821E9A1.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9D
Deuteranopia (green-blind)
#265397
Tritanopia (blue-blind)
#823A5C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #821e9a;
/* rgb */ color: rgb(130, 30, 154);
/* oklch */ color: oklch(45.7% 0.195 318.7);
Tailwind
colors: {
  custom: {
    50: '#aa67b8',
    500: '#821e9a',
    950: '#000000',
  },
}
SCSS
$custom: #821e9a;
$custom-light: #aa67b8;
$custom-dark: #000000;
JSON
{
  "hex": "#821e9a",
  "rgb": {
    "r": 130,
    "g": 30,
    "b": 154
  },
  "hsl": {
    "h": 288.387,
    "s": 67.391,
    "l": 36.078
  },
  "oklch": {
    "l": 0.4568,
    "c": 0.19518,
    "h": 318.7
  },
  "luminance": 0.08007
}

Semantic roles & 50–950 ramp

primary
#821E9A
secondary
#68C153
accent
#EA3E5F
background
#FAF6FB
surface
#F5EBF6
border
#CFC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #821E9A

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

Preview Lab → · Contrast checker → · Palette generator →

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