#802E7A#802E7A

#802E7A is a dark, vivid purple. Relative luminance 0.079; OKLCH L 44.9% C 0.147 H 330.7°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#802E7A
RGBrgb(128, 46, 122)
HSLhsl(304, 47%, 34%)
HSVhsv(304, 64%, 50%)
CMYKcmyk(0%, 64.1%, 4.7%, 49.8%)
CIE-LABlab(33.88, 45.19, -26.23)
CIE-LCHlch(33.88, 52.25, 329.87°)
OKLaboklab(44.91% 0.1284 -0.072)
OKLCHoklch(44.91% 0.147 330.7)
XYZxyz(13.3919, 7.9493, 19.2376)
Luminance0.0795 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802E7A #2E8034
analogous
#5D2E80 #802E7A #802E51
triadic
#802E7A #7A802E #2E7A80
tetradic
#802E7A #805D2E #2E8034 #2E5180
square
#802E7A #805D2E #2E8034 #2E5180
split-complementary
#802E7A #51802E #2E805D
monochromatic
#260E24 #531E4F #802E7A #AD3EA5 #C762BF

Accessibility & contrast

On white

8.11
#802E7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#802E7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802E7A
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802E7A#FFFFFF#000000##FFFFFF
##802E7A1.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29487C
Deuteranopia (green-blind)
#445478
Tritanopia (blue-blind)
#85364F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #802e7a;
/* rgb */ color: rgb(128, 46, 122);
/* oklch */ color: oklch(44.9% 0.147 330.7);
Tailwind
colors: {
  custom: {
    50: '#a76da1',
    500: '#802e7a',
    950: '#000000',
  },
}
SCSS
$custom: #802e7a;
$custom-light: #a76da1;
$custom-dark: #000000;
JSON
{
  "hex": "#802e7a",
  "rgb": {
    "r": 128,
    "g": 46,
    "b": 122
  },
  "hsl": {
    "h": 304.39,
    "s": 47.126,
    "l": 34.118
  },
  "oklch": {
    "l": 0.44905,
    "c": 0.14718,
    "h": 330.7
  },
  "luminance": 0.07948
}

Semantic roles & 50–950 ramp

primary
#802E7A
secondary
#5DAD63
accent
#D75B51
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#10070F
muted
#7F7A7E

Preview Lab

Preview with #802E7A

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

Preview Lab → · Contrast checker → · Palette generator →

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