#821F9B#821F9B

#821F9B is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.8% C 0.195 H 318.3°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#821F9B
RGBrgb(130, 31, 155)
HSLhsl(288, 67%, 36%)
HSVhsv(288, 80%, 61%)
CMYKcmyk(16.1%, 80%, 0%, 39.2%)
CIE-LABlab(34.18, 57.55, -46.11)
CIE-LCHlch(34.18, 73.74, 321.30°)
OKLaboklab(45.83% 0.1457 -0.1297)
OKLCHoklch(45.83% 0.195 318.3)
XYZxyz(15.6115, 8.0931, 31.7438)
Luminance0.0809 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#821F9B #389B1F
analogous
#441F9B #821F9B #9B1F76
triadic
#821F9B #9B821F #1F9B82
tetradic
#821F9B #9B441F #389B1F #1F769B
square
#821F9B #9B441F #389B1F #1F769B
split-complementary
#821F9B #769B1F #1F9B44
monochromatic
#2C0B35 #571568 #821F9B #AD29CE #C257DD

Accessibility & contrast

On white

8.02
#821F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#821F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #821F9B
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##821F9B#FFFFFF#000000##FFFFFF
##821F9B1.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9E
Deuteranopia (green-blind)
#265398
Tritanopia (blue-blind)
#813B5D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #821f9b;
/* rgb */ color: rgb(130, 31, 155);
/* oklch */ color: oklch(45.8% 0.195 318.3);
Tailwind
colors: {
  custom: {
    50: '#aa68b9',
    500: '#821f9b',
    950: '#000000',
  },
}
SCSS
$custom: #821f9b;
$custom-light: #aa68b9;
$custom-dark: #000000;
JSON
{
  "hex": "#821f9b",
  "rgb": {
    "r": 130,
    "g": 31,
    "b": 155
  },
  "hsl": {
    "h": 287.903,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.45826,
    "c": 0.1951,
    "h": 318.3
  },
  "luminance": 0.08092
}

Semantic roles & 50–950 ramp

primary
#821F9B
secondary
#6BC155
accent
#EA3E61
background
#FAF6FB
surface
#F5EBF6
border
#CFC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #821F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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