#821B71#821B71

#821B71 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.9% C 0.165 H 335.9°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#821B71
RGBrgb(130, 27, 113)
HSLhsl(310, 66%, 31%)
HSVhsv(310, 79%, 51%)
CMYKcmyk(0%, 79.2%, 13.1%, 49%)
CIE-LABlab(31.17, 51.49, -24.77)
CIE-LCHlch(31.17, 57.14, 334.31°)
OKLaboklab(42.86% 0.151 -0.0676)
OKLCHoklch(42.86% 0.165 335.9)
XYZxyz(12.5787, 6.7231, 16.2548)
Luminance0.0672 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#821B71 #1B822C
analogous
#5F1B82 #821B71 #821B3D
triadic
#821B71 #71821B #1B7182
tetradic
#821B71 #825F1B #1B822C #1B3D82
square
#821B71 #825F1B #1B822C #1B3D82
split-complementary
#821B71 #3D821B #1B825F
monochromatic
#1D0619 #4F1045 #821B71 #B5269D #D740BE

Accessibility & contrast

On white

8.96
#821B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#821B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #821B71
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##821B71#FFFFFF#000000##FFFFFF
##821B711.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4073
Deuteranopia (green-blind)
#424F6F
Tritanopia (blue-blind)
#892345
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #821b71;
/* rgb */ color: rgb(130, 27, 113);
/* oklch */ color: oklch(42.9% 0.165 335.9);
Tailwind
colors: {
  custom: {
    50: '#aa649a',
    500: '#821b71',
    950: '#000000',
  },
}
SCSS
$custom: #821b71;
$custom-light: #aa649a;
$custom-dark: #000000;
JSON
{
  "hex": "#821b71",
  "rgb": {
    "r": 130,
    "g": 27,
    "b": 113
  },
  "hsl": {
    "h": 309.903,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.42859,
    "c": 0.16545,
    "h": 335.9
  },
  "luminance": 0.06722
}

Semantic roles & 50–950 ramp

primary
#821B71
secondary
#43B656
accent
#E95B3F
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #821B71

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

Preview Lab → · Contrast checker → · Palette generator →

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