#821CA8#821CA8

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

Color values

HEX#821CA8
RGBrgb(130, 28, 168)
HSLhsl(284, 71%, 38%)
HSVhsv(284, 83%, 66%)
CMYKcmyk(22.6%, 83.3%, 0%, 34.1%)
CIE-LABlab(34.81, 60.97, -52.94)
CIE-LCHlch(34.81, 80.74, 319.03°)
OKLaboklab(46.57% 0.1455 -0.1497)
OKLCHoklch(46.57% 0.209 314.2)
XYZxyz(16.6878, 8.4041, 37.7813)
Luminance0.0840 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#821CA8 #42A81C
analogous
#3C1CA8 #821CA8 #A81C88
triadic
#821CA8 #A8821C #1CA882
tetradic
#821CA8 #A83C1C #42A81C #1C88A8
square
#821CA8 #A83C1C #42A81C #1C88A8
split-complementary
#821CA8 #88A81C #1CA83C
monochromatic
#310B3F #591374 #821CA8 #AA26DB #BE5BE4

Accessibility & contrast

On white

7.83
#821CA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#821CA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #821CA8
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##821CA8#FFFFFF#000000##FFFFFF
##821CA81.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #821ca8;
/* rgb */ color: rgb(130, 28, 168);
/* oklch */ color: oklch(46.6% 0.209 314.2);
Tailwind
colors: {
  custom: {
    50: '#ab67c3',
    500: '#821ca8',
    950: '#000000',
  },
}
SCSS
$custom: #821ca8;
$custom-light: #ab67c3;
$custom-dark: #000000;
JSON
{
  "hex": "#821ca8",
  "rgb": {
    "r": 130,
    "g": 28,
    "b": 168
  },
  "hsl": {
    "h": 283.714,
    "s": 71.429,
    "l": 38.431
  },
  "oklch": {
    "l": 0.46568,
    "c": 0.20879,
    "h": 314.2
  },
  "luminance": 0.08403
}

Semantic roles & 50–950 ramp

primary
#821CA8
secondary
#77C758
accent
#EE3A6B
background
#FBF6FC
surface
#F6EBF8
border
#D0C6D1
text
#110713
muted
#807A82

Preview Lab

Preview with #821CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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