#802FA4#802FA4

#802FA4 is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.7% C 0.185 H 313.3°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#802FA4
RGBrgb(128, 47, 164)
HSLhsl(282, 55%, 41%)
HSVhsv(282, 71%, 64%)
CMYKcmyk(22%, 71.3%, 0%, 35.7%)
CIE-LABlab(36.56, 53.03, -47.72)
CIE-LCHlch(36.56, 71.34, 318.02°)
OKLaboklab(47.65% 0.1269 -0.1346)
OKLCHoklch(47.65% 0.185 313.3)
XYZxyz(16.6183, 9.3031, 36.0350)
Luminance0.0930 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802FA4 #53A42F
analogous
#462FA4 #802FA4 #A42F8E
triadic
#802FA4 #A4802F #2FA480
tetradic
#802FA4 #A4462F #53A42F #2F8EA4
square
#802FA4 #A4462F #53A42F #2F8EA4
split-complementary
#802FA4 #8EA42F #2FA446
monochromatic
#361445 #5B2174 #802FA4 #A146CA #BA76D8

Accessibility & contrast

On white

7.34
#802FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#802FA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802FA4
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802FA4#FFFFFF#000000##FFFFFF
##802FA41.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A7
Deuteranopia (green-blind)
#2658A1
Tritanopia (blue-blind)
#7C4866
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #802fa4;
/* rgb */ color: rgb(128, 47, 164);
/* oklch */ color: oklch(47.7% 0.185 313.3);
Tailwind
colors: {
  custom: {
    50: '#a96fc0',
    500: '#802fa4',
    950: '#000000',
  },
}
SCSS
$custom: #802fa4;
$custom-light: #a96fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#802fa4",
  "rgb": {
    "r": 128,
    "g": 47,
    "b": 164
  },
  "hsl": {
    "h": 281.538,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.47651,
    "c": 0.18501,
    "h": 313.3
  },
  "luminance": 0.09303
}

Semantic roles & 50–950 ramp

primary
#802FA4
secondary
#88C06F
accent
#DF4977
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #802FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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