#821B7E#821B7E

#821B7E is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.6% C 0.175 H 329.8°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#821B7E
RGBrgb(130, 27, 126)
HSLhsl(302, 66%, 31%)
HSVhsv(302, 79%, 51%)
CMYKcmyk(0%, 79.2%, 3.1%, 49%)
CIE-LABlab(31.89, 53.57, -31.85)
CIE-LCHlch(31.89, 62.32, 329.26°)
OKLaboklab(43.61% 0.1515 -0.0881)
OKLCHoklch(43.61% 0.175 329.8)
XYZxyz(13.3637, 7.0371, 20.3891)
Luminance0.0704 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#821B7E #1B821F
analogous
#521B82 #821B7E #821B4A
triadic
#821B7E #7E821B #1B7E82
tetradic
#821B7E #82521B #1B821F #1B4A82
square
#821B7E #82521B #1B821F #1B4A82
split-complementary
#821B7E #4A821B #1B8252
monochromatic
#1D061C #4F104D #821B7E #B526AF #D740D1

Accessibility & contrast

On white

8.72
#821B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#821B7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #821B7E
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##821B7E#FFFFFF#000000##FFFFFF
##821B7E1.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#094281
Deuteranopia (green-blind)
#3B507C
Tritanopia (blue-blind)
#872A4C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #821b7e;
/* rgb */ color: rgb(130, 27, 126);
/* oklch */ color: oklch(43.6% 0.175 329.8);
Tailwind
colors: {
  custom: {
    50: '#aa65a4',
    500: '#821b7e',
    950: '#000000',
  },
}
SCSS
$custom: #821b7e;
$custom-light: #aa65a4;
$custom-dark: #000000;
JSON
{
  "hex": "#821b7e",
  "rgb": {
    "r": 130,
    "g": 27,
    "b": 126
  },
  "hsl": {
    "h": 302.33,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.43611,
    "c": 0.17522,
    "h": 329.8
  },
  "luminance": 0.07036
}

Semantic roles & 50–950 ramp

primary
#821B7E
secondary
#43B648
accent
#E9463F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #821B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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