#802FA8#802FA8

#802FA8 is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.9% C 0.189 H 312.0°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#802FA8
RGBrgb(128, 47, 168)
HSLhsl(280, 56%, 42%)
HSVhsv(280, 72%, 66%)
CMYKcmyk(23.8%, 72%, 0%, 34.1%)
CIE-LABlab(36.84, 53.89, -49.67)
CIE-LCHlch(36.84, 73.29, 317.33°)
OKLaboklab(47.93% 0.1264 -0.1404)
OKLCHoklch(47.93% 0.189 312)
XYZxyz(16.9852, 9.4498, 37.9675)
Luminance0.0945 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802FA8 #57A82F
analogous
#432FA8 #802FA8 #A82F94
triadic
#802FA8 #A8802F #2FA880
tetradic
#802FA8 #A8432F #57A82F #2F94A8
square
#802FA8 #A8432F #57A82F #2F94A8
split-complementary
#802FA8 #94A82F #2FA843
monochromatic
#371448 #5C2278 #802FA8 #A048CC #B978D9

Accessibility & contrast

On white

7.27
#802FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#802FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802FA8
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802FA8#FFFFFF#000000##FFFFFF
##802FA81.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AB
Deuteranopia (green-blind)
#2058A5
Tritanopia (blue-blind)
#7B4968
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #802fa8;
/* rgb */ color: rgb(128, 47, 168);
/* oklch */ color: oklch(47.9% 0.189 312.0);
Tailwind
colors: {
  custom: {
    50: '#a96fc3',
    500: '#802fa8',
    950: '#000000',
  },
}
SCSS
$custom: #802fa8;
$custom-light: #a96fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#802fa8",
  "rgb": {
    "r": 128,
    "g": 47,
    "b": 168
  },
  "hsl": {
    "h": 280.165,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.47934,
    "c": 0.18891,
    "h": 312
  },
  "luminance": 0.09449
}

Semantic roles & 50–950 ramp

primary
#802FA8
secondary
#8CC171
accent
#E0487A
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #802FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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