#802A78#802A78

#802A78 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.3% C 0.151 H 331.7°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#802A78
RGBrgb(128, 42, 120)
HSLhsl(306, 51%, 33%)
HSVhsv(306, 67%, 50%)
CMYKcmyk(0%, 67.2%, 6.3%, 49.8%)
CIE-LABlab(33.14, 46.60, -26.13)
CIE-LCHlch(33.14, 53.42, 330.71°)
OKLaboklab(44.34% 0.1332 -0.0717)
OKLCHoklch(44.34% 0.151 331.7)
XYZxyz(13.1202, 7.6022, 18.5420)
Luminance0.0760 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802A78 #2A8032
analogous
#5D2A80 #802A78 #802A4D
triadic
#802A78 #78802A #2A7880
tetradic
#802A78 #805D2A #2A8032 #2A4D80
square
#802A78 #805D2A #2A8032 #2A4D80
split-complementary
#802A78 #4D802A #2A805D
monochromatic
#240C22 #521B4D #802A78 #AE39A3 #C95BBF

Accessibility & contrast

On white

8.33
#802A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#802A78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802A78
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802A78#FFFFFF#000000##FFFFFF
##802A781.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25467A
Deuteranopia (green-blind)
#435276
Tritanopia (blue-blind)
#85324D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #802a78;
/* rgb */ color: rgb(128, 42, 120);
/* oklch */ color: oklch(44.3% 0.151 331.7);
Tailwind
colors: {
  custom: {
    50: '#a86b9f',
    500: '#802a78',
    950: '#000000',
  },
}
SCSS
$custom: #802a78;
$custom-light: #a86b9f;
$custom-dark: #000000;
JSON
{
  "hex": "#802a78",
  "rgb": {
    "r": 128,
    "g": 42,
    "b": 120
  },
  "hsl": {
    "h": 305.581,
    "s": 50.588,
    "l": 33.333
  },
  "oklch": {
    "l": 0.44335,
    "c": 0.15129,
    "h": 331.7
  },
  "luminance": 0.07601
}

Semantic roles & 50–950 ramp

primary
#802A78
secondary
#57AF5F
accent
#DA5B4E
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #802A78

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

Preview Lab → · Contrast checker → · Palette generator →

#802A78 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva