#821871#821871

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

Color values

HEX#821871
RGBrgb(130, 24, 113)
HSLhsl(310, 69%, 30%)
HSVhsv(310, 82%, 51%)
CMYKcmyk(0%, 81.5%, 13.1%, 49%)
CIE-LABlab(30.86, 52.37, -25.26)
CIE-LCHlch(30.86, 58.15, 334.26°)
OKLaboklab(42.64% 0.1536 -0.069)
OKLCHoklch(42.64% 0.168 335.8)
XYZxyz(12.5134, 6.5925, 16.2330)
Luminance0.0659 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#821871 #188229
analogous
#5E1882 #821871 #82183C
triadic
#821871 #718218 #187182
tetradic
#821871 #825E18 #188229 #183C82
square
#821871 #825E18 #188229 #183C82
split-complementary
#821871 #3C8218 #18825E
monochromatic
#1B0517 #4E0E44 #821871 #B6229E #DB3AC1

Accessibility & contrast

On white

9.06
#821871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #821871
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##821871#FFFFFF#000000##FFFFFF
##8218711.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#193F73
Deuteranopia (green-blind)
#414E6F
Tritanopia (blue-blind)
#892144
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #821871;
/* rgb */ color: rgb(130, 24, 113);
/* oklch */ color: oklch(42.6% 0.168 335.8);
Tailwind
colors: {
  custom: {
    50: '#aa639a',
    500: '#821871',
    950: '#000000',
  },
}
SCSS
$custom: #821871;
$custom-light: #aa639a;
$custom-dark: #000000;
JSON
{
  "hex": "#821871",
  "rgb": {
    "r": 130,
    "g": 24,
    "b": 113
  },
  "hsl": {
    "h": 309.623,
    "s": 68.831,
    "l": 30.196
  },
  "oklch": {
    "l": 0.42639,
    "c": 0.16841,
    "h": 335.8
  },
  "luminance": 0.06591
}

Semantic roles & 50–950 ramp

primary
#821871
secondary
#40B653
accent
#EC583C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #821871

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

Preview Lab → · Contrast checker → · Palette generator →

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