#821878#821878

#821878 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.0% C 0.174 H 332.5°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#821878
RGBrgb(130, 24, 120)
HSLhsl(306, 69%, 30%)
HSVhsv(306, 82%, 51%)
CMYKcmyk(0%, 81.5%, 7.7%, 49%)
CIE-LABlab(31.25, 53.46, -29.09)
CIE-LCHlch(31.25, 60.86, 331.44°)
OKLaboklab(43.04% 0.1539 -0.08)
OKLCHoklch(43.04% 0.174 332.5)
XYZxyz(12.9228, 6.7563, 18.3891)
Luminance0.0675 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#821878 #188222
analogous
#571882 #821878 #821843
triadic
#821878 #788218 #187882
tetradic
#821878 #825718 #188222 #184382
square
#821878 #825718 #188222 #184382
split-complementary
#821878 #438218 #188257
monochromatic
#1B0519 #4E0E48 #821878 #B622A8 #DB3ACB

Accessibility & contrast

On white

8.93
#821878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#821878 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #821878
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##821878#FFFFFF#000000##FFFFFF
##8218781.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10407A
Deuteranopia (green-blind)
#3D4F76
Tritanopia (blue-blind)
#882548
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #821878;
/* rgb */ color: rgb(130, 24, 120);
/* oklch */ color: oklch(43.0% 0.174 332.5);
Tailwind
colors: {
  custom: {
    50: '#aa639f',
    500: '#821878',
    950: '#000000',
  },
}
SCSS
$custom: #821878;
$custom-light: #aa639f;
$custom-dark: #000000;
JSON
{
  "hex": "#821878",
  "rgb": {
    "r": 130,
    "g": 24,
    "b": 120
  },
  "hsl": {
    "h": 305.66,
    "s": 68.831,
    "l": 30.196
  },
  "oklch": {
    "l": 0.43039,
    "c": 0.17351,
    "h": 332.5
  },
  "luminance": 0.06755
}

Semantic roles & 50–950 ramp

primary
#821878
secondary
#40B64B
accent
#EC4D3C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #821878

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

Preview Lab → · Contrast checker → · Palette generator →

#821878 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva