#821FA6#821FA6

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

Color values

HEX#821FA6
RGBrgb(130, 31, 166)
HSLhsl(284, 69%, 39%)
HSVhsv(284, 81%, 65%)
CMYKcmyk(21.7%, 81.3%, 0%, 34.9%)
CIE-LABlab(34.96, 59.70, -51.49)
CIE-LCHlch(34.96, 78.83, 319.22°)
OKLaboklab(46.63% 0.1438 -0.1455)
OKLCHoklch(46.63% 0.205 314.7)
XYZxyz(16.5777, 8.4796, 36.8325)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#821FA6 #43A61F
analogous
#3E1FA6 #821FA6 #A61F86
triadic
#821FA6 #A6821F #1FA682
tetradic
#821FA6 #A63E1F #43A61F #1F86A6
square
#821FA6 #A63E1F #43A61F #1F86A6
split-complementary
#821FA6 #86A61F #1FA63E
monochromatic
#310C3F #5A1572 #821FA6 #A92BD7 #BE5EE1

Accessibility & contrast

On white

7.79
#821FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#821FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #821FA6
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##821FA6#FFFFFF#000000##FFFFFF
##821FA61.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAA
Deuteranopia (green-blind)
#1455A3
Tritanopia (blue-blind)
#7F4064
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #821fa6;
/* rgb */ color: rgb(130, 31, 166);
/* oklch */ color: oklch(46.6% 0.205 314.7);
Tailwind
colors: {
  custom: {
    50: '#ab68c1',
    500: '#821fa6',
    950: '#000000',
  },
}
SCSS
$custom: #821fa6;
$custom-light: #ab68c1;
$custom-dark: #000000;
JSON
{
  "hex": "#821fa6",
  "rgb": {
    "r": 130,
    "g": 31,
    "b": 166
  },
  "hsl": {
    "h": 284,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.46627,
    "c": 0.20456,
    "h": 314.7
  },
  "luminance": 0.08479
}

Semantic roles & 50–950 ramp

primary
#821FA6
secondary
#78C55B
accent
#EB3C6B
background
#FBF6FC
surface
#F6EBF8
border
#D0C6D1
text
#110712
muted
#807A81

Preview Lab

Preview with #821FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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