#821F8A#821F8A

#821F8A is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.7% C 0.181 H 324.7°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#821F8A
RGBrgb(130, 31, 138)
HSLhsl(296, 63%, 33%)
HSVhsv(296, 78%, 54%)
CMYKcmyk(5.8%, 77.5%, 0%, 45.9%)
CIE-LABlab(33.05, 54.39, -37.48)
CIE-LCHlch(33.05, 66.05, 325.43°)
OKLaboklab(44.67% 0.1476 -0.1045)
OKLCHoklch(44.67% 0.181 324.7)
XYZxyz(14.2830, 7.5617, 24.7471)
Luminance0.0756 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#821F8A #278A1F
analogous
#4C1F8A #821F8A #8A1F5C
triadic
#821F8A #8A821F #1F8A82
tetradic
#821F8A #8A4C1F #278A1F #1F5C8A
square
#821F8A #8A4C1F #278A1F #1F5C8A
split-complementary
#821F8A #5C8A1F #1F8A4C
monochromatic
#240926 #531458 #821F8A #B12ABC #CD4CD7

Accessibility & contrast

On white

8.36
#821F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#821F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #821F8A
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##821F8A#FFFFFF#000000##FFFFFF
##821F8A1.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468D
Deuteranopia (green-blind)
#355287
Tritanopia (blue-blind)
#853354
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #821f8a;
/* rgb */ color: rgb(130, 31, 138);
/* oklch */ color: oklch(44.7% 0.181 324.7);
Tailwind
colors: {
  custom: {
    50: '#aa67ad',
    500: '#821f8a',
    950: '#000000',
  },
}
SCSS
$custom: #821f8a;
$custom-light: #aa67ad;
$custom-dark: #000000;
JSON
{
  "hex": "#821f8a",
  "rgb": {
    "r": 130,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 295.514,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.44673,
    "c": 0.1808,
    "h": 324.7
  },
  "luminance": 0.07561
}

Semantic roles & 50–950 ramp

primary
#821F8A
secondary
#53BA4B
accent
#E6414E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #821F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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