#802F78#802F78

#802F78 is a dark, vivid purple. Relative luminance 0.080; OKLCH L 44.9% C 0.144 H 331.7°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#802F78
RGBrgb(128, 47, 120)
HSLhsl(306, 46%, 34%)
HSVhsv(306, 63%, 50%)
CMYKcmyk(0%, 63.3%, 6.3%, 49.8%)
CIE-LABlab(33.94, 44.38, -24.88)
CIE-LCHlch(33.94, 50.88, 330.73°)
OKLaboklab(44.92% 0.1268 -0.0681)
OKLCHoklch(44.92% 0.144 331.7)
XYZxyz(13.3087, 7.9793, 18.6048)
Luminance0.0798 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802F78 #2F8037
analogous
#602F80 #802F78 #802F50
triadic
#802F78 #78802F #2F7880
tetradic
#802F78 #80602F #2F8037 #2F5080
square
#802F78 #80602F #2F8037 #2F5080
split-complementary
#802F78 #50802F #2F8060
monochromatic
#260E24 #531F4E #802F78 #AD3FA2 #C663BC

Accessibility & contrast

On white

8.09
#802F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#802F78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802F78
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802F78#FFFFFF#000000##FFFFFF
##802F781.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B487A
Deuteranopia (green-blind)
#465476
Tritanopia (blue-blind)
#85364F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #802f78;
/* rgb */ color: rgb(128, 47, 120);
/* oklch */ color: oklch(44.9% 0.144 331.7);
Tailwind
colors: {
  custom: {
    50: '#a76d9f',
    500: '#802f78',
    950: '#000000',
  },
}
SCSS
$custom: #802f78;
$custom-light: #a76d9f;
$custom-dark: #000000;
JSON
{
  "hex": "#802f78",
  "rgb": {
    "r": 128,
    "g": 47,
    "b": 120
  },
  "hsl": {
    "h": 305.926,
    "s": 46.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.44917,
    "c": 0.14396,
    "h": 331.7
  },
  "luminance": 0.07978
}

Semantic roles & 50–950 ramp

primary
#802F78
secondary
#5EAD66
accent
#D65F52
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #802F78

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

Preview Lab → · Contrast checker → · Palette generator →

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