#802FA3#802FA3

#802FA3 is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.6% C 0.184 H 313.6°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#802FA3
RGBrgb(128, 47, 163)
HSLhsl(282, 55%, 41%)
HSVhsv(282, 71%, 64%)
CMYKcmyk(21.5%, 71.2%, 0%, 36.1%)
CIE-LABlab(36.49, 52.82, -47.23)
CIE-LCHlch(36.49, 70.85, 318.20°)
OKLaboklab(47.58% 0.127 -0.1332)
OKLCHoklch(47.58% 0.184 313.6)
XYZxyz(16.5283, 9.2671, 35.5613)
Luminance0.0927 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802FA3 #52A32F
analogous
#462FA3 #802FA3 #A32F8C
triadic
#802FA3 #A3802F #2FA380
tetradic
#802FA3 #A3462F #52A32F #2F8CA3
square
#802FA3 #A3462F #52A32F #2F8CA3
split-complementary
#802FA3 #8CA32F #2FA346
monochromatic
#351444 #5B2173 #802FA3 #A246CA #BA75D7

Accessibility & contrast

On white

7.36
#802FA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#802FA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802FA3
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802FA3#FFFFFF#000000##FFFFFF
##802FA31.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A6
Deuteranopia (green-blind)
#2758A0
Tritanopia (blue-blind)
#7D4766
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #802fa3;
/* rgb */ color: rgb(128, 47, 163);
/* oklch */ color: oklch(47.6% 0.184 313.6);
Tailwind
colors: {
  custom: {
    50: '#a96fbf',
    500: '#802fa3',
    950: '#000000',
  },
}
SCSS
$custom: #802fa3;
$custom-light: #a96fbf;
$custom-dark: #000000;
JSON
{
  "hex": "#802fa3",
  "rgb": {
    "r": 128,
    "g": 47,
    "b": 163
  },
  "hsl": {
    "h": 281.897,
    "s": 55.238,
    "l": 41.176
  },
  "oklch": {
    "l": 0.47581,
    "c": 0.18404,
    "h": 313.6
  },
  "luminance": 0.09267
}

Semantic roles & 50–950 ramp

primary
#802FA3
secondary
#87BF6F
accent
#DF4976
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #802FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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