#821BA8#821BA8

#821BA8 is a mid, highly saturated purple. Relative luminance 0.084; OKLCH L 46.5% C 0.210 H 314.2°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#821BA8
RGBrgb(130, 27, 168)
HSLhsl(284, 72%, 38%)
HSVhsv(284, 84%, 66%)
CMYKcmyk(22.6%, 83.9%, 0%, 34.1%)
CIE-LABlab(34.72, 61.24, -53.09)
CIE-LCHlch(34.72, 81.05, 319.08°)
OKLaboklab(46.5% 0.1462 -0.1502)
OKLCHoklch(46.5% 0.21 314.2)
XYZxyz(16.6645, 8.3574, 37.7735)
Luminance0.0836 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#821BA8 #41A81B
analogous
#3B1BA8 #821BA8 #A81B87
triadic
#821BA8 #A8821B #1BA882
tetradic
#821BA8 #A83B1B #41A81B #1B87A8
square
#821BA8 #A83B1B #41A81B #1B87A8
split-complementary
#821BA8 #87A81B #1BA83B
monochromatic
#300A3F #591373 #821BA8 #AA24DC #BF59E4

Accessibility & contrast

On white

7.86
#821BA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#821BA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #821BA8
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##821BA8#FFFFFF#000000##FFFFFF
##821BA81.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAC
Deuteranopia (green-blind)
#0754A5
Tritanopia (blue-blind)
#7E4064
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #821ba8;
/* rgb */ color: rgb(130, 27, 168);
/* oklch */ color: oklch(46.5% 0.210 314.2);
Tailwind
colors: {
  custom: {
    50: '#ab67c3',
    500: '#821ba8',
    950: '#000000',
  },
}
SCSS
$custom: #821ba8;
$custom-light: #ab67c3;
$custom-dark: #000000;
JSON
{
  "hex": "#821ba8",
  "rgb": {
    "r": 130,
    "g": 27,
    "b": 168
  },
  "hsl": {
    "h": 283.83,
    "s": 72.308,
    "l": 38.235
  },
  "oklch": {
    "l": 0.46502,
    "c": 0.20959,
    "h": 314.2
  },
  "luminance": 0.08357
}

Semantic roles & 50–950 ramp

primary
#821BA8
secondary
#75C857
accent
#EF396A
background
#FBF6FC
surface
#F6EBF8
border
#D0C6D1
text
#110713
muted
#807A82

Preview Lab

Preview with #821BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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