#821AB3#821AB3

#821AB3 is a mid, highly saturated purple. Relative luminance 0.087; OKLCH L 47.3% C 0.220 H 311.0°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#821AB3
RGBrgb(130, 26, 179)
HSLhsl(281, 75%, 40%)
HSVhsv(281, 85%, 70%)
CMYKcmyk(27.4%, 85.5%, 0%, 29.8%)
CIE-LABlab(35.48, 63.69, -58.42)
CIE-LCHlch(35.48, 86.43, 317.47°)
OKLaboklab(47.3% 0.144 -0.1659)
OKLCHoklch(47.3% 0.22 311)
XYZxyz(17.7104, 8.7397, 43.3931)
Luminance0.0874 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#821AB3 #4BB31A
analogous
#351AB3 #821AB3 #B31A98
triadic
#821AB3 #B3821A #1AB382
tetradic
#821AB3 #B3351A #4BB31A #1A98B3
square
#821AB3 #B3351A #4BB31A #1A98B3
split-complementary
#821AB3 #98B31A #1AB335
monochromatic
#340A48 #5B127E #821AB3 #A62AE0 #BC60E8

Accessibility & contrast

On white

7.64
#821AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#821AB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #821AB3
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##821AB3#FFFFFF#000000##FFFFFF
##821AB31.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB7
Deuteranopia (green-blind)
#0055B0
Tritanopia (blue-blind)
#7B446A
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #821ab3;
/* rgb */ color: rgb(130, 26, 179);
/* oklch */ color: oklch(47.3% 0.220 311.0);
Tailwind
colors: {
  custom: {
    50: '#ac67cb',
    500: '#821ab3',
    950: '#000000',
  },
}
SCSS
$custom: #821ab3;
$custom-light: #ac67cb;
$custom-dark: #000000;
JSON
{
  "hex": "#821ab3",
  "rgb": {
    "r": 130,
    "g": 26,
    "b": 179
  },
  "hsl": {
    "h": 280.784,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.47298,
    "c": 0.21967,
    "h": 311
  },
  "luminance": 0.08739
}

Semantic roles & 50–950 ramp

primary
#821AB3
secondary
#80CC5D
accent
#F13772
background
#FBF6FC
surface
#F6EBF9
border
#D0C6D2
text
#110713
muted
#807A82

Preview Lab

Preview with #821AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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