#802D7D#802D7D

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

Color values

HEX#802D7D
RGBrgb(128, 45, 125)
HSLhsl(302, 48%, 34%)
HSVhsv(302, 65%, 50%)
CMYKcmyk(0%, 64.8%, 2.3%, 49.8%)
CIE-LABlab(33.87, 46.17, -28.11)
CIE-LCHlch(33.87, 54.06, 328.66°)
OKLaboklab(44.95% 0.1299 -0.0774)
OKLCHoklch(44.95% 0.151 329.2)
XYZxyz(13.5420, 7.9476, 20.2188)
Luminance0.0795 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802D7D #2D8030
analogous
#5A2D80 #802D7D #802D54
triadic
#802D7D #7D802D #2D7D80
tetradic
#802D7D #805A2D #2D8030 #2D5480
square
#802D7D #805A2D #2D8030 #2D5480
split-complementary
#802D7D #54802D #2D805A
monochromatic
#250D25 #531D51 #802D7D #AD3DA9 #C760C3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##802D7D#FFFFFF#000000##FFFFFF
##802D7D1.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)
#25487F
Deuteranopia (green-blind)
#42547B
Tritanopia (blue-blind)
#843751
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #802d7d;
/* rgb */ color: rgb(128, 45, 125);
/* oklch */ color: oklch(45.0% 0.151 329.2);
Tailwind
colors: {
  custom: {
    50: '#a76ca3',
    500: '#802d7d',
    950: '#000000',
  },
}
SCSS
$custom: #802d7d;
$custom-light: #a76ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#802d7d",
  "rgb": {
    "r": 128,
    "g": 45,
    "b": 125
  },
  "hsl": {
    "h": 302.169,
    "s": 47.977,
    "l": 33.922
  },
  "oklch": {
    "l": 0.44954,
    "c": 0.15126,
    "h": 329.2
  },
  "luminance": 0.07947
}

Semantic roles & 50–950 ramp

primary
#802D7D
secondary
#5BAE5E
accent
#D85550
background
#FAF6FA
surface
#F4ECF3
border
#CEC7CD
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #802D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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