#802D7C#802D7C

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

Color values

HEX#802D7C
RGBrgb(128, 45, 124)
HSLhsl(303, 48%, 34%)
HSVhsv(303, 65%, 50%)
CMYKcmyk(0%, 64.8%, 3.1%, 49.8%)
CIE-LABlab(33.82, 46.00, -27.57)
CIE-LCHlch(33.82, 53.63, 329.06°)
OKLaboklab(44.9% 0.1299 -0.0759)
OKLCHoklch(44.9% 0.15 329.7)
XYZxyz(13.4785, 7.9221, 19.8841)
Luminance0.0792 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802D7C #2D8031
analogous
#5B2D80 #802D7C #802D53
triadic
#802D7C #7C802D #2D7C80
tetradic
#802D7C #805B2D #2D8031 #2D5380
square
#802D7C #805B2D #2D8031 #2D5380
split-complementary
#802D7C #53802D #2D805B
monochromatic
#250D24 #531D50 #802D7C #AD3DA8 #C760C2

Accessibility & contrast

On white

8.13
#802D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#802D7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802D7C
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802D7C#FFFFFF#000000##FFFFFF
##802D7C1.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26487E
Deuteranopia (green-blind)
#43547A
Tritanopia (blue-blind)
#853650
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #802d7c;
/* rgb */ color: rgb(128, 45, 124);
/* oklch */ color: oklch(44.9% 0.150 329.7);
Tailwind
colors: {
  custom: {
    50: '#a76ca2',
    500: '#802d7c',
    950: '#000000',
  },
}
SCSS
$custom: #802d7c;
$custom-light: #a76ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#802d7c",
  "rgb": {
    "r": 128,
    "g": 45,
    "b": 124
  },
  "hsl": {
    "h": 302.892,
    "s": 47.977,
    "l": 33.922
  },
  "oklch": {
    "l": 0.44898,
    "c": 0.15039,
    "h": 329.7
  },
  "luminance": 0.07921
}

Semantic roles & 50–950 ramp

primary
#802D7C
secondary
#5BAE5F
accent
#D85750
background
#FAF6FA
surface
#F4ECF3
border
#CEC7CD
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #802D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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