#821BA1#821BA1

#821BA1 is a mid, highly saturated purple. Relative luminance 0.081; OKLCH L 46.0% C 0.204 H 316.5°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#821BA1
RGBrgb(130, 27, 161)
HSLhsl(286, 71%, 37%)
HSVhsv(286, 83%, 63%)
CMYKcmyk(19.3%, 83.2%, 0%, 36.9%)
CIE-LABlab(34.20, 59.88, -49.71)
CIE-LCHlch(34.20, 77.82, 320.30°)
OKLaboklab(45.98% 0.1477 -0.1403)
OKLCHoklch(45.98% 0.204 316.5)
XYZxyz(16.0299, 8.1036, 34.4311)
Luminance0.0810 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#821BA1 #3AA11B
analogous
#3F1BA1 #821BA1 #A11B7D
triadic
#821BA1 #A1821B #1BA182
tetradic
#821BA1 #A13F1B #3AA11B #1B7DA1
square
#821BA1 #A13F1B #3AA11B #1B7DA1
split-complementary
#821BA1 #7DA11B #1BA13F
monochromatic
#2D0938 #58126D #821BA1 #AC24D5 #C154E2

Accessibility & contrast

On white

8.01
#821BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#821BA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #821BA1
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##821BA1#FFFFFF#000000##FFFFFF
##821BA11.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA4
Deuteranopia (green-blind)
#1A539E
Tritanopia (blue-blind)
#803C60
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #821ba1;
/* rgb */ color: rgb(130, 27, 161);
/* oklch */ color: oklch(46.0% 0.204 316.5);
Tailwind
colors: {
  custom: {
    50: '#ab66be',
    500: '#821ba1',
    950: '#000000',
  },
}
SCSS
$custom: #821ba1;
$custom-light: #ab66be;
$custom-dark: #000000;
JSON
{
  "hex": "#821ba1",
  "rgb": {
    "r": 130,
    "g": 27,
    "b": 161
  },
  "hsl": {
    "h": 286.119,
    "s": 71.277,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45976,
    "c": 0.20369,
    "h": 316.5
  },
  "luminance": 0.08103
}

Semantic roles & 50–950 ramp

primary
#821BA1
secondary
#6DC552
accent
#EE3A63
background
#FBF6FB
surface
#F6EBF7
border
#D0C6D0
text
#110712
muted
#807A81

Preview Lab

Preview with #821BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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