#802E7E#802E7E

#802E7E is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.1% C 0.151 H 328.7°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#802E7E
RGBrgb(128, 46, 126)
HSLhsl(301, 47%, 34%)
HSVhsv(301, 64%, 50%)
CMYKcmyk(0%, 64.1%, 1.6%, 49.8%)
CIE-LABlab(34.09, 45.91, -28.40)
CIE-LCHlch(34.09, 53.98, 328.26°)
OKLaboklab(45.13% 0.1288 -0.0783)
OKLCHoklch(45.13% 0.151 328.7)
XYZxyz(13.6448, 8.0505, 20.5698)
Luminance0.0805 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802E7E #2E8030
analogous
#592E80 #802E7E #802E55
triadic
#802E7E #7E802E #2E7E80
tetradic
#802E7E #80592E #2E8030 #2E5580
square
#802E7E #80592E #2E8030 #2E5580
split-complementary
#802E7E #55802E #2E8059
monochromatic
#260E25 #531E52 #802E7E #AD3EAA #C762C4

Accessibility & contrast

On white

8.05
#802E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#802E7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802E7E
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802E7E#FFFFFF#000000##FFFFFF
##802E7E1.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254980
Deuteranopia (green-blind)
#42547C
Tritanopia (blue-blind)
#843851
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #802e7e;
/* rgb */ color: rgb(128, 46, 126);
/* oklch */ color: oklch(45.1% 0.151 328.7);
Tailwind
colors: {
  custom: {
    50: '#a76da4',
    500: '#802e7e',
    950: '#000000',
  },
}
SCSS
$custom: #802e7e;
$custom-light: #a76da4;
$custom-dark: #000000;
JSON
{
  "hex": "#802e7e",
  "rgb": {
    "r": 128,
    "g": 46,
    "b": 126
  },
  "hsl": {
    "h": 301.463,
    "s": 47.126,
    "l": 34.118
  },
  "oklch": {
    "l": 0.45127,
    "c": 0.15067,
    "h": 328.7
  },
  "luminance": 0.0805
}

Semantic roles & 50–950 ramp

primary
#802E7E
secondary
#5DAD5F
accent
#D75451
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #802E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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