#802CA4#802CA4

#802CA4 is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.3% C 0.189 H 313.6°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#802CA4
RGBrgb(128, 44, 164)
HSLhsl(282, 58%, 41%)
HSVhsv(282, 73%, 64%)
CMYKcmyk(22%, 73.2%, 0%, 35.7%)
CIE-LABlab(36.12, 54.28, -48.43)
CIE-LCHlch(36.12, 72.74, 318.26°)
OKLaboklab(47.34% 0.13 -0.1367)
OKLCHoklch(47.34% 0.189 313.6)
XYZxyz(16.5024, 9.0714, 35.9964)
Luminance0.0907 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802CA4 #50A42C
analogous
#442CA4 #802CA4 #A42C8C
triadic
#802CA4 #A4802C #2CA480
tetradic
#802CA4 #A4442C #50A42C #2C8CA4
square
#802CA4 #A4442C #50A42C #2C8CA4
split-complementary
#802CA4 #8CA42C #2CA444
monochromatic
#351243 #5A1F74 #802CA4 #A241CC #BA71D9

Accessibility & contrast

On white

7.46
#802CA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#802CA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802CA4
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802CA4#FFFFFF#000000##FFFFFF
##802CA41.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A7
Deuteranopia (green-blind)
#2257A1
Tritanopia (blue-blind)
#7C4665
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #802ca4;
/* rgb */ color: rgb(128, 44, 164);
/* oklch */ color: oklch(47.3% 0.189 313.6);
Tailwind
colors: {
  custom: {
    50: '#a96dc0',
    500: '#802ca4',
    950: '#000000',
  },
}
SCSS
$custom: #802ca4;
$custom-light: #a96dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#802ca4",
  "rgb": {
    "r": 128,
    "g": 44,
    "b": 164
  },
  "hsl": {
    "h": 282,
    "s": 57.692,
    "l": 40.784
  },
  "oklch": {
    "l": 0.47338,
    "c": 0.18864,
    "h": 313.6
  },
  "luminance": 0.09071
}

Semantic roles & 50–950 ramp

primary
#802CA4
secondary
#85C06B
accent
#E14775
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #802CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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