#821DA8#821DA8

#821DA8 is a mid, highly saturated purple. Relative luminance 0.085; OKLCH L 46.6% C 0.208 H 314.1°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#821DA8
RGBrgb(130, 29, 168)
HSLhsl(284, 71%, 39%)
HSVhsv(284, 83%, 66%)
CMYKcmyk(22.6%, 82.7%, 0%, 34.1%)
CIE-LABlab(34.91, 60.68, -52.78)
CIE-LCHlch(34.91, 80.42, 318.99°)
OKLaboklab(46.64% 0.1448 -0.1493)
OKLCHoklch(46.64% 0.208 314.1)
XYZxyz(16.7120, 8.4523, 37.7893)
Luminance0.0845 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#821DA8 #43A81D
analogous
#3C1DA8 #821DA8 #A81D88
triadic
#821DA8 #A8821D #1DA882
tetradic
#821DA8 #A83C1D #43A81D #1D88A8
square
#821DA8 #A83C1D #43A81D #1D88A8
split-complementary
#821DA8 #88A81D #1DA83C
monochromatic
#310B40 #5A1474 #821DA8 #A928DA #BE5CE3

Accessibility & contrast

On white

7.81
#821DA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#821DA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #821DA8
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##821DA8#FFFFFF#000000##FFFFFF
##821DA81.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #821da8;
/* rgb */ color: rgb(130, 29, 168);
/* oklch */ color: oklch(46.6% 0.208 314.1);
Tailwind
colors: {
  custom: {
    50: '#ab67c3',
    500: '#821da8',
    950: '#000000',
  },
}
SCSS
$custom: #821da8;
$custom-light: #ab67c3;
$custom-dark: #000000;
JSON
{
  "hex": "#821da8",
  "rgb": {
    "r": 130,
    "g": 29,
    "b": 168
  },
  "hsl": {
    "h": 283.597,
    "s": 70.558,
    "l": 38.627
  },
  "oklch": {
    "l": 0.46636,
    "c": 0.20798,
    "h": 314.1
  },
  "luminance": 0.08452
}

Semantic roles & 50–950 ramp

primary
#821DA8
secondary
#78C75A
accent
#ED3A6B
background
#FBF6FC
surface
#F6EBF8
border
#D0C6D1
text
#110713
muted
#807A82

Preview Lab

Preview with #821DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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