#802C7B#802C7B

#802C7B is a dark, vivid purple. Relative luminance 0.078; OKLCH L 44.7% C 0.151 H 330.2°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#802C7B
RGBrgb(128, 44, 123)
HSLhsl(304, 49%, 34%)
HSVhsv(304, 66%, 50%)
CMYKcmyk(0%, 65.6%, 3.9%, 49.8%)
CIE-LABlab(33.61, 46.26, -27.28)
CIE-LCHlch(33.61, 53.70, 329.47°)
OKLaboklab(44.73% 0.131 -0.075)
OKLCHoklch(44.73% 0.151 330.2)
XYZxyz(13.3778, 7.8216, 19.5402)
Luminance0.0782 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802C7B #2C8031
analogous
#5B2C80 #802C7B #802C51
triadic
#802C7B #7B802C #2C7B80
tetradic
#802C7B #805B2C #2C8031 #2C5180
square
#802C7B #805B2C #2C8031 #2C5180
split-complementary
#802C7B #51802C #2C805B
monochromatic
#250D23 #521C4F #802C7B #AE3CA7 #C85FC2

Accessibility & contrast

On white

8.19
#802C7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#802C7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802C7B
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802C7B#FFFFFF#000000##FFFFFF
##802C7B1.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25487D
Deuteranopia (green-blind)
#435379
Tritanopia (blue-blind)
#85354F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #802c7b;
/* rgb */ color: rgb(128, 44, 123);
/* oklch */ color: oklch(44.7% 0.151 330.2);
Tailwind
colors: {
  custom: {
    50: '#a86ca1',
    500: '#802c7b',
    950: '#000000',
  },
}
SCSS
$custom: #802c7b;
$custom-light: #a86ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#802c7b",
  "rgb": {
    "r": 128,
    "g": 44,
    "b": 123
  },
  "hsl": {
    "h": 303.571,
    "s": 48.837,
    "l": 33.725
  },
  "oklch": {
    "l": 0.44727,
    "c": 0.15098,
    "h": 330.2
  },
  "luminance": 0.07821
}

Semantic roles & 50–950 ramp

primary
#802C7B
secondary
#5AAE5F
accent
#D8584F
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#10070F
muted
#7F7A7E

Preview Lab

Preview with #802C7B

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

Preview Lab → · Contrast checker → · Palette generator →

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