#821872#821872

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

Color values

HEX#821872
RGBrgb(130, 24, 114)
HSLhsl(309, 69%, 30%)
HSVhsv(309, 82%, 51%)
CMYKcmyk(0%, 81.5%, 12.3%, 49%)
CIE-LABlab(30.91, 52.53, -25.81)
CIE-LCHlch(30.91, 58.52, 333.83°)
OKLaboklab(42.7% 0.1537 -0.0706)
OKLCHoklch(42.7% 0.169 335.3)
XYZxyz(12.5700, 6.6152, 16.5312)
Luminance0.0661 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#821872 #188228
analogous
#5D1882 #821872 #82183D
triadic
#821872 #728218 #187282
tetradic
#821872 #825D18 #188228 #183D82
square
#821872 #825D18 #188228 #183D82
split-complementary
#821872 #3D8218 #18825D
monochromatic
#1B0517 #4E0E45 #821872 #B6229F #DB3AC2

Accessibility & contrast

On white

9.04
#821872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#821872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #821872
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##821872#FFFFFF#000000##FFFFFF
##8218721.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #821872;
/* rgb */ color: rgb(130, 24, 114);
/* oklch */ color: oklch(42.7% 0.169 335.3);
Tailwind
colors: {
  custom: {
    50: '#aa639b',
    500: '#821872',
    950: '#000000',
  },
}
SCSS
$custom: #821872;
$custom-light: #aa639b;
$custom-dark: #000000;
JSON
{
  "hex": "#821872",
  "rgb": {
    "r": 130,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 309.057,
    "s": 68.831,
    "l": 30.196
  },
  "oklch": {
    "l": 0.42695,
    "c": 0.16912,
    "h": 335.3
  },
  "luminance": 0.06614
}

Semantic roles & 50–950 ramp

primary
#821872
secondary
#40B652
accent
#EC573C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #821872

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

Preview Lab → · Contrast checker → · Palette generator →

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