#821CB4#821CB4

#821CB4 is a mid, highly saturated purple. Relative luminance 0.089; OKLCH L 47.5% C 0.219 H 310.6°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#821CB4
RGBrgb(130, 28, 180)
HSLhsl(280, 73%, 41%)
HSVhsv(280, 84%, 71%)
CMYKcmyk(27.8%, 84.4%, 0%, 29.4%)
CIE-LABlab(35.74, 63.37, -58.60)
CIE-LCHlch(35.74, 86.31, 317.24°)
OKLaboklab(47.5% 0.1425 -0.1664)
OKLCHoklch(47.5% 0.219 310.6)
XYZxyz(17.8578, 8.8721, 43.9429)
Luminance0.0887 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#821CB4 #4EB41C
analogous
#361CB4 #821CB4 #B41C9A
triadic
#821CB4 #B4821C #1CB482
tetradic
#821CB4 #B4361C #4EB41C #1C9AB4
square
#821CB4 #B4361C #4EB41C #1C9AB4
split-complementary
#821CB4 #9AB41C #1CB436
monochromatic
#350C4A #5C147F #821CB4 #A52FDF #BC64E7

Accessibility & contrast

On white

7.57
#821CB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#821CB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #821CB4
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##821CB4#FFFFFF#000000##FFFFFF
##821CB41.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B8
Deuteranopia (green-blind)
#0056B1
Tritanopia (blue-blind)
#7B466B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #821cb4;
/* rgb */ color: rgb(130, 28, 180);
/* oklch */ color: oklch(47.5% 0.219 310.6);
Tailwind
colors: {
  custom: {
    50: '#ac68cb',
    500: '#821cb4',
    950: '#000000',
  },
}
SCSS
$custom: #821cb4;
$custom-light: #ac68cb;
$custom-dark: #000000;
JSON
{
  "hex": "#821cb4",
  "rgb": {
    "r": 130,
    "g": 28,
    "b": 180
  },
  "hsl": {
    "h": 280.263,
    "s": 73.077,
    "l": 40.784
  },
  "oklch": {
    "l": 0.47502,
    "c": 0.21908,
    "h": 310.6
  },
  "luminance": 0.08872
}

Semantic roles & 50–950 ramp

primary
#821CB4
secondary
#84CC60
accent
#F03874
background
#FBF6FC
surface
#F6EBF9
border
#D0C6D2
text
#110713
muted
#807A82

Preview Lab

Preview with #821CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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