#821B7B#821B7B

#821B7B is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.4% C 0.173 H 331.2°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#821B7B
RGBrgb(130, 27, 123)
HSLhsl(304, 66%, 31%)
HSVhsv(304, 79%, 51%)
CMYKcmyk(0%, 79.2%, 5.4%, 49%)
CIE-LABlab(31.72, 53.07, -30.24)
CIE-LCHlch(31.72, 61.08, 330.33°)
OKLaboklab(43.43% 0.1515 -0.0834)
OKLCHoklch(43.43% 0.173 331.2)
XYZxyz(13.1730, 6.9608, 19.3848)
Luminance0.0696 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#821B7B #1B8222
analogous
#551B82 #821B7B #821B47
triadic
#821B7B #7B821B #1B7B82
tetradic
#821B7B #82551B #1B8222 #1B4782
square
#821B7B #82551B #1B8222 #1B4782
split-complementary
#821B7B #47821B #1B8255
monochromatic
#1D061B #4F104B #821B7B #B526AB #D740CD

Accessibility & contrast

On white

8.78
#821B7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#821B7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #821B7B
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##821B7B#FFFFFF#000000##FFFFFF
##821B7B1.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F427E
Deuteranopia (green-blind)
#3D5079
Tritanopia (blue-blind)
#87294A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #821b7b;
/* rgb */ color: rgb(130, 27, 123);
/* oklch */ color: oklch(43.4% 0.173 331.2);
Tailwind
colors: {
  custom: {
    50: '#aa65a1',
    500: '#821b7b',
    950: '#000000',
  },
}
SCSS
$custom: #821b7b;
$custom-light: #aa65a1;
$custom-dark: #000000;
JSON
{
  "hex": "#821b7b",
  "rgb": {
    "r": 130,
    "g": 27,
    "b": 123
  },
  "hsl": {
    "h": 304.078,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.43431,
    "c": 0.17291,
    "h": 331.2
  },
  "luminance": 0.0696
}

Semantic roles & 50–950 ramp

primary
#821B7B
secondary
#43B64B
accent
#E94B3F
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #821B7B

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

Preview Lab → · Contrast checker → · Palette generator →

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