#821FD4#821FD4

#821FD4 is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 50.4% C 0.245 H 302.2°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#821FD4
RGBrgb(130, 31, 212)
HSLhsl(273, 74%, 48%)
HSVhsv(273, 85%, 83%)
CMYKcmyk(38.7%, 85.4%, 0%, 16.9%)
CIE-LABlab(38.69, 69.28, -72.51)
CIE-LCHlch(38.69, 100.29, 313.70°)
OKLaboklab(50.37% 0.1307 -0.2072)
OKLCHoklch(50.37% 0.245 302.2)
XYZxyz(21.5767, 10.4792, 63.1605)
Luminance0.1048 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#821FD4 #71D41F
analogous
#281FD4 #821FD4 #D41FCB
triadic
#821FD4 #D4821F #1FD482
tetradic
#821FD4 #D4281F #71D41F #1FCBD4
square
#821FD4 #D4281F #71D41F #1FCBD4
split-complementary
#821FD4 #CBD41F #1FD428
monochromatic
#410F69 #61179F #821FD4 #9F4BE5 #BC81ED

Accessibility & contrast

On white

6.78
#821FD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#821FD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #821FD4
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##821FD4#FFFFFF#000000##FFFFFF
##821FD41.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD9
Deuteranopia (green-blind)
#005AD1
Tritanopia (blue-blind)
#70567F
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #821fd4;
/* rgb */ color: rgb(130, 31, 212);
/* oklch */ color: oklch(50.4% 0.245 302.2);
Tailwind
colors: {
  custom: {
    50: '#ae6be2',
    500: '#821fd4',
    950: '#000000',
  },
}
SCSS
$custom: #821fd4;
$custom-light: #ae6be2;
$custom-dark: #000000;
JSON
{
  "hex": "#821fd4",
  "rgb": {
    "r": 130,
    "g": 31,
    "b": 212
  },
  "hsl": {
    "h": 272.818,
    "s": 74.486,
    "l": 47.647
  },
  "oklch": {
    "l": 0.50366,
    "c": 0.24504,
    "h": 302.2
  },
  "luminance": 0.10479
}

Semantic roles & 50–950 ramp

primary
#821FD4
secondary
#A3D57A
accent
#F1378B
background
#FBF6FE
surface
#F6ECFC
border
#D0C7D5
text
#110816
muted
#807A84

Preview Lab

Preview with #821FD4

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

Preview Lab → · Contrast checker → · Palette generator →

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