#821B79#821B79

#821B79 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.3% C 0.171 H 332.1°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#821B79
RGBrgb(130, 27, 121)
HSLhsl(305, 66%, 31%)
HSVhsv(305, 79%, 51%)
CMYKcmyk(0%, 79.2%, 6.9%, 49%)
CIE-LABlab(31.60, 52.75, -29.16)
CIE-LCHlch(31.60, 60.27, 331.07°)
OKLaboklab(43.31% 0.1514 -0.0803)
OKLCHoklch(43.31% 0.171 332.1)
XYZxyz(13.0491, 6.9113, 18.7322)
Luminance0.0691 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#821B79 #1B8224
analogous
#571B82 #821B79 #821B45
triadic
#821B79 #79821B #1B7982
tetradic
#821B79 #82571B #1B8224 #1B4582
square
#821B79 #82571B #1B8224 #1B4582
split-complementary
#821B79 #45821B #1B8257
monochromatic
#1D061B #4F104A #821B79 #B526A8 #D740CA

Accessibility & contrast

On white

8.82
#821B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#821B79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #821B79
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##821B79#FFFFFF#000000##FFFFFF
##821B791.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13417B
Deuteranopia (green-blind)
#3E4F77
Tritanopia (blue-blind)
#882849
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #821b79;
/* rgb */ color: rgb(130, 27, 121);
/* oklch */ color: oklch(43.3% 0.171 332.1);
Tailwind
colors: {
  custom: {
    50: '#aa64a0',
    500: '#821b79',
    950: '#000000',
  },
}
SCSS
$custom: #821b79;
$custom-light: #aa64a0;
$custom-dark: #000000;
JSON
{
  "hex": "#821b79",
  "rgb": {
    "r": 130,
    "g": 27,
    "b": 121
  },
  "hsl": {
    "h": 305.243,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.43313,
    "c": 0.17138,
    "h": 332.1
  },
  "luminance": 0.0691
}

Semantic roles & 50–950 ramp

primary
#821B79
secondary
#43B64D
accent
#E94E3F
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #821B79

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

Preview Lab → · Contrast checker → · Palette generator →

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