#821F9E#821F9E

#821F9E is a mid, vivid purple. Relative luminance 0.082; OKLCH L 46.0% C 0.198 H 317.3°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#821F9E
RGBrgb(130, 31, 158)
HSLhsl(287, 67%, 37%)
HSVhsv(287, 80%, 62%)
CMYKcmyk(17.7%, 80.4%, 0%, 38%)
CIE-LABlab(34.39, 58.13, -47.59)
CIE-LCHlch(34.39, 75.12, 320.69°)
OKLaboklab(46.04% 0.1453 -0.1341)
OKLCHoklch(46.04% 0.198 317.3)
XYZxyz(15.8666, 8.1951, 33.0872)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#821F9E #3B9E1F
analogous
#431F9E #821F9E #9E1F7A
triadic
#821F9E #9E821F #1F9E82
tetradic
#821F9E #9E431F #3B9E1F #1F7A9E
square
#821F9E #9E431F #3B9E1F #1F7A9E
split-complementary
#821F9E #7A9E1F #1F9E43
monochromatic
#2E0B38 #58156B #821F9E #AC29D1 #C159DE

Accessibility & contrast

On white

7.96
#821F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#821F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #821F9E
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##821F9E#FFFFFF#000000##FFFFFF
##821F9E1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA1
Deuteranopia (green-blind)
#22549B
Tritanopia (blue-blind)
#813C5F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #821f9e;
/* rgb */ color: rgb(130, 31, 158);
/* oklch */ color: oklch(46.0% 0.198 317.3);
Tailwind
colors: {
  custom: {
    50: '#ab68bb',
    500: '#821f9e',
    950: '#000000',
  },
}
SCSS
$custom: #821f9e;
$custom-light: #ab68bb;
$custom-dark: #000000;
JSON
{
  "hex": "#821f9e",
  "rgb": {
    "r": 130,
    "g": 31,
    "b": 158
  },
  "hsl": {
    "h": 286.772,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.46041,
    "c": 0.19767,
    "h": 317.3
  },
  "luminance": 0.08194
}

Semantic roles & 50–950 ramp

primary
#821F9E
secondary
#6EC256
accent
#EA3E64
background
#FAF6FB
surface
#F5EBF6
border
#CFC6D0
text
#110712
muted
#807A81

Preview Lab

Preview with #821F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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