#821772#821772

#821772 is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.6% C 0.170 H 335.3°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#821772
RGBrgb(130, 23, 114)
HSLhsl(309, 70%, 30%)
HSVhsv(309, 82%, 51%)
CMYKcmyk(0%, 82.3%, 12.3%, 49%)
CIE-LABlab(30.82, 52.80, -25.96)
CIE-LCHlch(30.82, 58.84, 333.82°)
OKLaboklab(42.63% 0.1545 -0.071)
OKLCHoklch(42.63% 0.17 335.3)
XYZxyz(12.5498, 6.5747, 16.5244)
Luminance0.0657 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#821772 #178227
analogous
#5D1782 #821772 #82173C
triadic
#821772 #728217 #177282
tetradic
#821772 #825D17 #178227 #173C82
square
#821772 #825D17 #178227 #173C82
split-complementary
#821772 #3C8217 #17825D
monochromatic
#1A0517 #4E0E44 #821772 #B620A0 #DC38C3

Accessibility & contrast

On white

9.07
#821772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#821772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #821772
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##821772#FFFFFF#000000##FFFFFF
##8217721.009.072.319.07
#FFFFFF9.071.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173F74
Deuteranopia (green-blind)
#404E70
Tritanopia (blue-blind)
#892144
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #821772;
/* rgb */ color: rgb(130, 23, 114);
/* oklch */ color: oklch(42.6% 0.170 335.3);
Tailwind
colors: {
  custom: {
    50: '#aa639b',
    500: '#821772',
    950: '#000000',
  },
}
SCSS
$custom: #821772;
$custom-light: #aa639b;
$custom-dark: #000000;
JSON
{
  "hex": "#821772",
  "rgb": {
    "r": 130,
    "g": 23,
    "b": 114
  },
  "hsl": {
    "h": 308.972,
    "s": 69.935,
    "l": 30
  },
  "oklch": {
    "l": 0.42626,
    "c": 0.17005,
    "h": 335.3
  },
  "luminance": 0.06574
}

Semantic roles & 50–950 ramp

primary
#821772
secondary
#3EB650
accent
#ED563B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #821772

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

Preview Lab → · Contrast checker → · Palette generator →

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