#821FA8#821FA8

#821FA8 is a mid, highly saturated purple. Relative luminance 0.086; OKLCH L 46.8% C 0.206 H 314.0°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#821FA8
RGBrgb(130, 31, 168)
HSLhsl(283, 69%, 39%)
HSVhsv(283, 82%, 66%)
CMYKcmyk(22.6%, 81.5%, 0%, 34.1%)
CIE-LABlab(35.11, 60.09, -52.45)
CIE-LCHlch(35.11, 79.76, 318.88°)
OKLaboklab(46.78% 0.1434 -0.1483)
OKLCHoklch(46.78% 0.206 314)
XYZxyz(16.7626, 8.5535, 37.8062)
Luminance0.0855 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#821FA8 #45A81F
analogous
#3E1FA8 #821FA8 #A81F8A
triadic
#821FA8 #A8821F #1FA882
tetradic
#821FA8 #A83E1F #45A81F #1F8AA8
square
#821FA8 #A83E1F #45A81F #1F8AA8
split-complementary
#821FA8 #8AA81F #1FA83E
monochromatic
#320C41 #5A1574 #821FA8 #A82CD8 #BE60E2

Accessibility & contrast

On white

7.75
#821FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#821FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #821FA8
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##821FA8#FFFFFF#000000##FFFFFF
##821FA81.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAC
Deuteranopia (green-blind)
#0E55A5
Tritanopia (blue-blind)
#7E4165
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #821fa8;
/* rgb */ color: rgb(130, 31, 168);
/* oklch */ color: oklch(46.8% 0.206 314.0);
Tailwind
colors: {
  custom: {
    50: '#ab68c3',
    500: '#821fa8',
    950: '#000000',
  },
}
SCSS
$custom: #821fa8;
$custom-light: #ab68c3;
$custom-dark: #000000;
JSON
{
  "hex": "#821fa8",
  "rgb": {
    "r": 130,
    "g": 31,
    "b": 168
  },
  "hsl": {
    "h": 283.358,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.46777,
    "c": 0.20629,
    "h": 314
  },
  "luminance": 0.08553
}

Semantic roles & 50–950 ramp

primary
#821FA8
secondary
#7AC65D
accent
#EC3C6D
background
#FBF6FC
surface
#F6EBF8
border
#D0C6D1
text
#110712
muted
#807A81

Preview Lab

Preview with #821FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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