#802FA7#802FA7

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

Color values

HEX#802FA7
RGBrgb(128, 47, 167)
HSLhsl(281, 56%, 42%)
HSVhsv(281, 72%, 65%)
CMYKcmyk(23.4%, 71.9%, 0%, 34.5%)
CIE-LABlab(36.77, 53.67, -49.19)
CIE-LCHlch(36.77, 72.80, 317.50°)
OKLaboklab(47.86% 0.1266 -0.1389)
OKLCHoklch(47.86% 0.188 312.3)
XYZxyz(16.8924, 9.4127, 37.4787)
Luminance0.0941 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802FA7 #56A72F
analogous
#442FA7 #802FA7 #A72F92
triadic
#802FA7 #A7802F #2FA780
tetradic
#802FA7 #A7442F #56A72F #2F92A7
square
#802FA7 #A7442F #56A72F #2F92A7
split-complementary
#802FA7 #92A72F #2FA744
monochromatic
#371447 #5B2277 #802FA7 #A148CB #B978D9

Accessibility & contrast

On white

7.29
#802FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#802FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802FA7
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802FA7#FFFFFF#000000##FFFFFF
##802FA71.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AA
Deuteranopia (green-blind)
#2258A4
Tritanopia (blue-blind)
#7B4968
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #802fa7;
/* rgb */ color: rgb(128, 47, 167);
/* oklch */ color: oklch(47.9% 0.188 312.3);
Tailwind
colors: {
  custom: {
    50: '#a96fc2',
    500: '#802fa7',
    950: '#000000',
  },
}
SCSS
$custom: #802fa7;
$custom-light: #a96fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#802fa7",
  "rgb": {
    "r": 128,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 280.5,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.47863,
    "c": 0.18794,
    "h": 312.3
  },
  "luminance": 0.09412
}

Semantic roles & 50–950 ramp

primary
#802FA7
secondary
#8BC171
accent
#DF4879
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #802FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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