#802178#802178

#802178 is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.4% C 0.163 H 331.7°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#802178
RGBrgb(128, 33, 120)
HSLhsl(305, 59%, 32%)
HSVhsv(305, 74%, 50%)
CMYKcmyk(0%, 74.2%, 6.3%, 49.8%)
CIE-LABlab(31.88, 50.13, -28.11)
CIE-LCHlch(31.88, 57.47, 330.72°)
OKLaboklab(43.43% 0.1435 -0.0773)
OKLCHoklch(43.43% 0.163 331.7)
XYZxyz(12.8361, 7.0340, 18.4473)
Luminance0.0703 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802178 #218029
analogous
#592180 #802178 #802149
triadic
#802178 #788021 #217880
tetradic
#802178 #805921 #218029 #214980
square
#802178 #805921 #218029 #214980
split-complementary
#802178 #498021 #218059
monochromatic
#1F081D #4F144A #802178 #B12EA6 #D14BC5

Accessibility & contrast

On white

8.73
#802178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#802178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802178
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802178#FFFFFF#000000##FFFFFF
##8021781.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A437A
Deuteranopia (green-blind)
#3F5076
Tritanopia (blue-blind)
#852C4A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #802178;
/* rgb */ color: rgb(128, 33, 120);
/* oklch */ color: oklch(43.4% 0.163 331.7);
Tailwind
colors: {
  custom: {
    50: '#a8669f',
    500: '#802178',
    950: '#000000',
  },
}
SCSS
$custom: #802178;
$custom-light: #a8669f;
$custom-dark: #000000;
JSON
{
  "hex": "#802178",
  "rgb": {
    "r": 128,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 305.053,
    "s": 59.006,
    "l": 31.569
  },
  "oklch": {
    "l": 0.43428,
    "c": 0.16297,
    "h": 331.7
  },
  "luminance": 0.07033
}

Semantic roles & 50–950 ramp

primary
#802178
secondary
#4AB353
accent
#E25346
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #802178

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

Preview Lab → · Contrast checker → · Palette generator →

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