#802478#802478

#802478 is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.7% C 0.159 H 331.7°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#802478
RGBrgb(128, 36, 120)
HSLhsl(305, 56%, 32%)
HSVhsv(305, 72%, 50%)
CMYKcmyk(0%, 71.9%, 6.3%, 49.8%)
CIE-LABlab(32.28, 49.02, -27.49)
CIE-LCHlch(32.28, 56.20, 330.72°)
OKLaboklab(43.71% 0.1402 -0.0756)
OKLCHoklch(43.71% 0.159 331.7)
XYZxyz(12.9231, 7.2080, 18.4763)
Luminance0.0721 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802478 #24802C
analogous
#5A2480 #802478 #80244A
triadic
#802478 #788024 #247880
tetradic
#802478 #805A24 #24802C #244A80
square
#802478 #805A24 #24802C #244A80
split-complementary
#802478 #4A8024 #24805A
monochromatic
#20091E #50174B #802478 #B031A5 #CE50C3

Accessibility & contrast

On white

8.60
#802478 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#802478 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802478
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802478#FFFFFF#000000##FFFFFF
##8024781.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E447A
Deuteranopia (green-blind)
#405076
Tritanopia (blue-blind)
#852E4B
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #802478;
/* rgb */ color: rgb(128, 36, 120);
/* oklch */ color: oklch(43.7% 0.159 331.7);
Tailwind
colors: {
  custom: {
    50: '#a8689f',
    500: '#802478',
    950: '#000000',
  },
}
SCSS
$custom: #802478;
$custom-light: #a8689f;
$custom-dark: #000000;
JSON
{
  "hex": "#802478",
  "rgb": {
    "r": 128,
    "g": 36,
    "b": 120
  },
  "hsl": {
    "h": 305.217,
    "s": 56.098,
    "l": 32.157
  },
  "oklch": {
    "l": 0.4371,
    "c": 0.1593,
    "h": 331.7
  },
  "luminance": 0.07207
}

Semantic roles & 50–950 ramp

primary
#802478
secondary
#4EB257
accent
#DF5648
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #802478

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

Preview Lab → · Contrast checker → · Palette generator →

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