#821778#821778

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

Color values

HEX#821778
RGBrgb(130, 23, 120)
HSLhsl(306, 70%, 30%)
HSVhsv(306, 82%, 51%)
CMYKcmyk(0%, 82.3%, 7.7%, 49%)
CIE-LABlab(31.15, 53.73, -29.24)
CIE-LCHlch(31.15, 61.17, 331.44°)
OKLaboklab(42.97% 0.1547 -0.0805)
OKLCHoklch(42.97% 0.174 332.5)
XYZxyz(12.9025, 6.7158, 18.3824)
Luminance0.0672 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#821778 #178221
analogous
#561782 #821778 #821743
triadic
#821778 #788217 #177882
tetradic
#821778 #825617 #178221 #174382
square
#821778 #825617 #178221 #174382
split-complementary
#821778 #438217 #178256
monochromatic
#1A0518 #4E0E48 #821778 #B620A8 #DC38CC

Accessibility & contrast

On white

8.96
#821778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#821778 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##821778#FFFFFF#000000##FFFFFF
##8217781.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)
#0E407A
Deuteranopia (green-blind)
#3D4F76
Tritanopia (blue-blind)
#882548
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #821778;
/* rgb */ color: rgb(130, 23, 120);
/* oklch */ color: oklch(43.0% 0.174 332.5);
Tailwind
colors: {
  custom: {
    50: '#aa639f',
    500: '#821778',
    950: '#000000',
  },
}
SCSS
$custom: #821778;
$custom-light: #aa639f;
$custom-dark: #000000;
JSON
{
  "hex": "#821778",
  "rgb": {
    "r": 130,
    "g": 23,
    "b": 120
  },
  "hsl": {
    "h": 305.607,
    "s": 69.935,
    "l": 30
  },
  "oklch": {
    "l": 0.42971,
    "c": 0.17442,
    "h": 332.5
  },
  "luminance": 0.06715
}

Semantic roles & 50–950 ramp

primary
#821778
secondary
#3EB64A
accent
#ED4C3B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #821778

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

Preview Lab → · Contrast checker → · Palette generator →

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