#821FA5#821FA5

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

Color values

HEX#821FA5
RGBrgb(130, 31, 165)
HSLhsl(284, 68%, 38%)
HSVhsv(284, 81%, 65%)
CMYKcmyk(21.2%, 81.2%, 0%, 35.3%)
CIE-LABlab(34.89, 59.50, -51.01)
CIE-LCHlch(34.89, 78.37, 319.39°)
OKLaboklab(46.55% 0.144 -0.1441)
OKLCHoklch(46.55% 0.204 315)
XYZxyz(16.4863, 8.4430, 36.3512)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#821FA5 #42A51F
analogous
#3F1FA5 #821FA5 #A51F85
triadic
#821FA5 #A5821F #1FA582
tetradic
#821FA5 #A53F1F #42A51F #1F85A5
square
#821FA5 #A53F1F #42A51F #1F85A5
split-complementary
#821FA5 #85A51F #1FA53F
monochromatic
#310C3E #591571 #821FA5 #AA2AD7 #BE5EE1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##821FA5#FFFFFF#000000##FFFFFF
##821FA51.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)
#004DA9
Deuteranopia (green-blind)
#1654A2
Tritanopia (blue-blind)
#7F4063
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #821fa5;
/* rgb */ color: rgb(130, 31, 165);
/* oklch */ color: oklch(46.6% 0.204 315.0);
Tailwind
colors: {
  custom: {
    50: '#ab68c0',
    500: '#821fa5',
    950: '#000000',
  },
}
SCSS
$custom: #821fa5;
$custom-light: #ab68c0;
$custom-dark: #000000;
JSON
{
  "hex": "#821fa5",
  "rgb": {
    "r": 130,
    "g": 31,
    "b": 165
  },
  "hsl": {
    "h": 284.328,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.46553,
    "c": 0.2037,
    "h": 315
  },
  "luminance": 0.08442
}

Semantic roles & 50–950 ramp

primary
#821FA5
secondary
#77C55B
accent
#EB3D6A
background
#FBF6FB
surface
#F6EBF7
border
#D0C6D0
text
#110712
muted
#807A81

Preview Lab

Preview with #821FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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