#821FA7#821FA7

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

Color values

HEX#821FA7
RGBrgb(130, 31, 167)
HSLhsl(284, 69%, 39%)
HSVhsv(284, 81%, 65%)
CMYKcmyk(22.2%, 81.4%, 0%, 34.5%)
CIE-LABlab(35.04, 59.89, -51.97)
CIE-LCHlch(35.04, 79.30, 319.05°)
OKLaboklab(46.7% 0.1436 -0.1469)
OKLCHoklch(46.7% 0.205 314.3)
XYZxyz(16.6698, 8.5164, 37.3175)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#821FA7 #44A71F
analogous
#3E1FA7 #821FA7 #A71F88
triadic
#821FA7 #A7821F #1FA782
tetradic
#821FA7 #A73E1F #44A71F #1F88A7
square
#821FA7 #A73E1F #44A71F #1F88A7
split-complementary
#821FA7 #88A71F #1FA73E
monochromatic
#320C40 #5A1573 #821FA7 #A92BD8 #BE5FE1

Accessibility & contrast

On white

7.77
#821FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #821FA7
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##821FA7#FFFFFF#000000##FFFFFF
##821FA71.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAB
Deuteranopia (green-blind)
#1155A4
Tritanopia (blue-blind)
#7E4164
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #821fa7;
/* rgb */ color: rgb(130, 31, 167);
/* oklch */ color: oklch(46.7% 0.205 314.3);
Tailwind
colors: {
  custom: {
    50: '#ab68c2',
    500: '#821fa7',
    950: '#000000',
  },
}
SCSS
$custom: #821fa7;
$custom-light: #ab68c2;
$custom-dark: #000000;
JSON
{
  "hex": "#821fa7",
  "rgb": {
    "r": 130,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 283.676,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.46702,
    "c": 0.20542,
    "h": 314.3
  },
  "luminance": 0.08516
}

Semantic roles & 50–950 ramp

primary
#821FA7
secondary
#79C65C
accent
#EC3C6C
background
#FBF6FC
surface
#F6EBF8
border
#D0C6D1
text
#110712
muted
#807A81

Preview Lab

Preview with #821FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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