#821FC2#821FC2

#821FC2 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.8% C 0.229 H 306.6°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#821FC2
RGBrgb(130, 31, 194)
HSLhsl(276, 72%, 44%)
HSVhsv(276, 84%, 76%)
CMYKcmyk(33%, 84%, 0%, 23.9%)
CIE-LABlab(37.15, 65.44, -64.55)
CIE-LCHlch(37.15, 91.92, 315.39°)
OKLaboklab(48.84% 0.1366 -0.1839)
OKLCHoklch(48.84% 0.229 306.6)
XYZxyz(19.4314, 9.6211, 51.8619)
Luminance0.0962 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#821FC2 #5FC21F
analogous
#311FC2 #821FC2 #C21FB1
triadic
#821FC2 #C2821F #1FC282
tetradic
#821FC2 #C2311F #5FC21F #1FB1C2
square
#821FC2 #C2311F #5FC21F #1FB1C2
split-complementary
#821FC2 #B1C21F #1FC231
monochromatic
#3B0E58 #5F178D #821FC2 #A13EE0 #BA73E9

Accessibility & contrast

On white

7.18
#821FC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#821FC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #821FC2
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##821FC2#FFFFFF#000000##FFFFFF
##821FC21.007.182.927.18
#FFFFFF7.181.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C6
Deuteranopia (green-blind)
#0058BF
Tritanopia (blue-blind)
#764D74
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #821fc2;
/* rgb */ color: rgb(130, 31, 194);
/* oklch */ color: oklch(48.8% 0.229 306.6);
Tailwind
colors: {
  custom: {
    50: '#ad6ad6',
    500: '#821fc2',
    950: '#000000',
  },
}
SCSS
$custom: #821fc2;
$custom-light: #ad6ad6;
$custom-dark: #000000;
JSON
{
  "hex": "#821fc2",
  "rgb": {
    "r": 130,
    "g": 31,
    "b": 194
  },
  "hsl": {
    "h": 276.442,
    "s": 72.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.48836,
    "c": 0.22907,
    "h": 306.6
  },
  "luminance": 0.09621
}

Semantic roles & 50–950 ramp

primary
#821FC2
secondary
#94CF6D
accent
#EF3980
background
#FBF6FD
surface
#F6ECFA
border
#D0C7D3
text
#110714
muted
#807A83

Preview Lab

Preview with #821FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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