#821B8B#821B8B

#821B8B is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.4% C 0.186 H 324.4°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#821B8B
RGBrgb(130, 27, 139)
HSLhsl(295, 67%, 33%)
HSVhsv(295, 81%, 55%)
CMYKcmyk(6.5%, 80.6%, 0%, 45.5%)
CIE-LABlab(32.69, 55.80, -38.68)
CIE-LCHlch(32.69, 67.90, 325.27°)
OKLaboklab(44.44% 0.1509 -0.1079)
OKLCHoklch(44.44% 0.186 324.4)
XYZxyz(14.2577, 7.3947, 25.0974)
Luminance0.0739 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#821B8B #248B1B
analogous
#4A1B8B #821B8B #8B1B5C
triadic
#821B8B #8B821B #1B8B82
tetradic
#821B8B #8B4A1B #248B1B #1B5C8B
square
#821B8B #8B4A1B #248B1B #1B5C8B
split-complementary
#821B8B #5C8B1B #1B8B4A
monochromatic
#220725 #521158 #821B8B #B225BE #CF45DB

Accessibility & contrast

On white

8.47
#821B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#821B8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #821B8B
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##821B8B#FFFFFF#000000##FFFFFF
##821B8B1.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458E
Deuteranopia (green-blind)
#335188
Tritanopia (blue-blind)
#853153
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #821b8b;
/* rgb */ color: rgb(130, 27, 139);
/* oklch */ color: oklch(44.4% 0.186 324.4);
Tailwind
colors: {
  custom: {
    50: '#aa65ad',
    500: '#821b8b',
    950: '#000000',
  },
}
SCSS
$custom: #821b8b;
$custom-light: #aa65ad;
$custom-dark: #000000;
JSON
{
  "hex": "#821b8b",
  "rgb": {
    "r": 130,
    "g": 27,
    "b": 139
  },
  "hsl": {
    "h": 295.179,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.44435,
    "c": 0.18552,
    "h": 324.4
  },
  "luminance": 0.07394
}

Semantic roles & 50–950 ramp

primary
#821B8B
secondary
#4FBC45
accent
#EA3D4B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #821B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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