#821E9B#821E9B

#821E9B is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.8% C 0.196 H 318.4°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#821E9B
RGBrgb(130, 30, 155)
HSLhsl(288, 68%, 36%)
HSVhsv(288, 81%, 61%)
CMYKcmyk(16.1%, 80.6%, 0%, 39.2%)
CIE-LABlab(34.07, 57.86, -46.28)
CIE-LCHlch(34.07, 74.09, 321.35°)
OKLaboklab(45.75% 0.1465 -0.1302)
OKLCHoklch(45.75% 0.196 318.4)
XYZxyz(15.5858, 8.0417, 31.7352)
Luminance0.0804 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#821E9B #379B1E
analogous
#441E9B #821E9B #9B1E76
triadic
#821E9B #9B821E #1E9B82
tetradic
#821E9B #9B441E #379B1E #1E769B
square
#821E9B #9B441E #379B1E #1E769B
split-complementary
#821E9B #769B1E #1E9B44
monochromatic
#2C0A34 #571468 #821E9B #AD28CE #C355DE

Accessibility & contrast

On white

8.05
#821E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#821E9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #821E9B
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##821E9B#FFFFFF#000000##FFFFFF
##821E9B1.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9E
Deuteranopia (green-blind)
#255398
Tritanopia (blue-blind)
#813A5D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #821e9b;
/* rgb */ color: rgb(130, 30, 155);
/* oklch */ color: oklch(45.8% 0.196 318.4);
Tailwind
colors: {
  custom: {
    50: '#aa67b9',
    500: '#821e9b',
    950: '#000000',
  },
}
SCSS
$custom: #821e9b;
$custom-light: #aa67b9;
$custom-dark: #000000;
JSON
{
  "hex": "#821e9b",
  "rgb": {
    "r": 130,
    "g": 30,
    "b": 155
  },
  "hsl": {
    "h": 288,
    "s": 67.568,
    "l": 36.275
  },
  "oklch": {
    "l": 0.45751,
    "c": 0.19603,
    "h": 318.4
  },
  "luminance": 0.08041
}

Semantic roles & 50–950 ramp

primary
#821E9B
secondary
#69C253
accent
#EA3D60
background
#FAF6FB
surface
#F5EBF6
border
#CFC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #821E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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