#821B9F#821B9F

#821B9F is a mid, highly saturated purple. Relative luminance 0.080; OKLCH L 45.8% C 0.202 H 317.1°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#821B9F
RGBrgb(130, 27, 159)
HSLhsl(287, 71%, 36%)
HSVhsv(287, 83%, 62%)
CMYKcmyk(18.2%, 83%, 0%, 37.6%)
CIE-LABlab(34.05, 59.50, -48.73)
CIE-LCHlch(34.05, 76.91, 320.68°)
OKLaboklab(45.83% 0.1481 -0.1374)
OKLCHoklch(45.83% 0.202 317.1)
XYZxyz(15.8549, 8.0336, 33.5097)
Luminance0.0803 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#821B9F #389F1B
analogous
#401B9F #821B9F #9F1B7A
triadic
#821B9F #9F821B #1B9F82
tetradic
#821B9F #9F401B #389F1B #1B7A9F
square
#821B9F #9F401B #389F1B #1B7A9F
split-complementary
#821B9F #7A9F1B #1B9F40
monochromatic
#2C0936 #57126B #821B9F #AD24D3 #C253E2

Accessibility & contrast

On white

8.06
#821B9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#821B9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #821B9F
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##821B9F#FFFFFF#000000##FFFFFF
##821B9F1.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA2
Deuteranopia (green-blind)
#1D539C
Tritanopia (blue-blind)
#803B5F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #821b9f;
/* rgb */ color: rgb(130, 27, 159);
/* oklch */ color: oklch(45.8% 0.202 317.1);
Tailwind
colors: {
  custom: {
    50: '#ab66bc',
    500: '#821b9f',
    950: '#000000',
  },
}
SCSS
$custom: #821b9f;
$custom-light: #ab66bc;
$custom-dark: #000000;
JSON
{
  "hex": "#821b9f",
  "rgb": {
    "r": 130,
    "g": 27,
    "b": 159
  },
  "hsl": {
    "h": 286.818,
    "s": 70.968,
    "l": 36.471
  },
  "oklch": {
    "l": 0.45829,
    "c": 0.20201,
    "h": 317.1
  },
  "luminance": 0.08033
}

Semantic roles & 50–950 ramp

primary
#821B9F
secondary
#6BC551
accent
#EE3A62
background
#FAF6FB
surface
#F5EBF6
border
#CFC6D0
text
#110712
muted
#807A81

Preview Lab

Preview with #821B9F

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

Preview Lab → · Contrast checker → · Palette generator →

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