#802181#802181

#802181 is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.0% C 0.170 H 327.6°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#802181
RGBrgb(128, 33, 129)
HSLhsl(299, 59%, 32%)
HSVhsv(299, 74%, 51%)
CMYKcmyk(0.8%, 74.4%, 0%, 49.4%)
CIE-LABlab(32.40, 51.67, -32.95)
CIE-LCHlch(32.40, 61.28, 327.48°)
OKLaboklab(43.96% 0.1437 -0.0913)
OKLCHoklch(43.96% 0.17 327.6)
XYZxyz(13.4082, 7.2628, 21.4603)
Luminance0.0726 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802181 #228121
analogous
#502181 #802181 #812152
triadic
#802181 #818021 #218180
tetradic
#802181 #815021 #228121 #215281
square
#802181 #815021 #228121 #215281
split-complementary
#802181 #528121 #218150
monochromatic
#1F0820 #501550 #802181 #B02DB2 #D04BD1

Accessibility & contrast

On white

8.56
#802181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#802181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802181
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802181#FFFFFF#000000##FFFFFF
##8021811.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4484
Deuteranopia (green-blind)
#3A507F
Tritanopia (blue-blind)
#84304F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #802181;
/* rgb */ color: rgb(128, 33, 129);
/* oklch */ color: oklch(44.0% 0.170 327.6);
Tailwind
colors: {
  custom: {
    50: '#a867a6',
    500: '#802181',
    950: '#000000',
  },
}
SCSS
$custom: #802181;
$custom-light: #a867a6;
$custom-dark: #000000;
JSON
{
  "hex": "#802181",
  "rgb": {
    "r": 128,
    "g": 33,
    "b": 129
  },
  "hsl": {
    "h": 299.375,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.43963,
    "c": 0.17024,
    "h": 327.6
  },
  "luminance": 0.07262
}

Semantic roles & 50–950 ramp

primary
#802181
secondary
#4BB44A
accent
#E24547
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #802181

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

Preview Lab → · Contrast checker → · Palette generator →

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