#802182#802182

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

Color values

HEX#802182
RGBrgb(128, 33, 130)
HSLhsl(299, 60%, 32%)
HSVhsv(299, 75%, 51%)
CMYKcmyk(1.5%, 74.6%, 0%, 49%)
CIE-LABlab(32.46, 51.85, -33.48)
CIE-LCHlch(32.46, 61.72, 327.15°)
OKLaboklab(44.02% 0.1437 -0.0929)
OKLCHoklch(44.02% 0.171 327.1)
XYZxyz(13.4750, 7.2896, 21.8121)
Luminance0.0729 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802182 #238221
analogous
#502182 #802182 #822154
triadic
#802182 #828021 #218280
tetradic
#802182 #825021 #238221 #215482
square
#802182 #825021 #238221 #215482
split-complementary
#802182 #548221 #218250
monochromatic
#200820 #501551 #802182 #B02DB3 #CF4CD2

Accessibility & contrast

On white

8.54
#802182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#802182 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802182
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802182#FFFFFF#000000##FFFFFF
##8021821.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A4585
Deuteranopia (green-blind)
#395180
Tritanopia (blue-blind)
#843150
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #802182;
/* rgb */ color: rgb(128, 33, 130);
/* oklch */ color: oklch(44.0% 0.171 327.1);
Tailwind
colors: {
  custom: {
    50: '#a867a7',
    500: '#802182',
    950: '#000000',
  },
}
SCSS
$custom: #802182;
$custom-light: #a867a7;
$custom-dark: #000000;
JSON
{
  "hex": "#802182",
  "rgb": {
    "r": 128,
    "g": 33,
    "b": 130
  },
  "hsl": {
    "h": 298.763,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.44024,
    "c": 0.17107,
    "h": 327.1
  },
  "luminance": 0.07289
}

Semantic roles & 50–950 ramp

primary
#802182
secondary
#4DB44A
accent
#E34548
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #802182

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

Preview Lab → · Contrast checker → · Palette generator →

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