#821788#821788

#821788 is a dark, vivid purple. Relative luminance 0.071; OKLCH L 44.0% C 0.187 H 325.7°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#821788
RGBrgb(130, 23, 136)
HSLhsl(297, 71%, 31%)
HSVhsv(297, 83%, 53%)
CMYKcmyk(4.4%, 83.1%, 0%, 46.7%)
CIE-LABlab(32.12, 56.38, -37.74)
CIE-LCHlch(32.12, 67.84, 326.21°)
OKLaboklab(43.97% 0.1542 -0.1052)
OKLCHoklch(43.97% 0.187 325.7)
XYZxyz(13.9560, 7.1372, 23.9303)
Luminance0.0714 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#821788 #1D8817
analogous
#491788 #821788 #881755
triadic
#821788 #888217 #178882
tetradic
#821788 #884917 #1D8817 #175588
square
#821788 #884917 #1D8817 #175588
split-complementary
#821788 #558817 #178849
monochromatic
#1E051F #500E54 #821788 #B420BC #D53BDE

Accessibility & contrast

On white

8.65
#821788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#821788 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #821788
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##821788#FFFFFF#000000##FFFFFF
##8217881.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438B
Deuteranopia (green-blind)
#335085
Tritanopia (blue-blind)
#852E51
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #821788;
/* rgb */ color: rgb(130, 23, 136);
/* oklch */ color: oklch(44.0% 0.187 325.7);
Tailwind
colors: {
  custom: {
    50: '#aa64ab',
    500: '#821788',
    950: '#000000',
  },
}
SCSS
$custom: #821788;
$custom-light: #aa64ab;
$custom-dark: #000000;
JSON
{
  "hex": "#821788",
  "rgb": {
    "r": 130,
    "g": 23,
    "b": 136
  },
  "hsl": {
    "h": 296.814,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.43968,
    "c": 0.18663,
    "h": 325.7
  },
  "luminance": 0.07136
}

Semantic roles & 50–950 ramp

primary
#821788
secondary
#46BC3F
accent
#EE3A44
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #821788

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

Preview Lab → · Contrast checker → · Palette generator →

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