#802FA6#802FA6

#802FA6 is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.8% C 0.187 H 312.7°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#802FA6
RGBrgb(128, 47, 166)
HSLhsl(281, 56%, 42%)
HSVhsv(281, 72%, 65%)
CMYKcmyk(22.9%, 71.7%, 0%, 34.9%)
CIE-LABlab(36.70, 53.46, -48.70)
CIE-LCHlch(36.70, 72.31, 317.67°)
OKLaboklab(47.79% 0.1267 -0.1375)
OKLCHoklch(47.79% 0.187 312.7)
XYZxyz(16.8003, 9.3759, 36.9937)
Luminance0.0938 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802FA6 #55A62F
analogous
#442FA6 #802FA6 #A62F91
triadic
#802FA6 #A6802F #2FA680
tetradic
#802FA6 #A6442F #55A62F #2F91A6
square
#802FA6 #A6442F #55A62F #2F91A6
split-complementary
#802FA6 #91A62F #2FA644
monochromatic
#361447 #5B2176 #802FA6 #A147CB #B977D8

Accessibility & contrast

On white

7.30
#802FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#802FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802FA6
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802FA6#FFFFFF#000000##FFFFFF
##802FA61.007.302.877.30
#FFFFFF7.301.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A9
Deuteranopia (green-blind)
#2358A3
Tritanopia (blue-blind)
#7C4967
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #802fa6;
/* rgb */ color: rgb(128, 47, 166);
/* oklch */ color: oklch(47.8% 0.187 312.7);
Tailwind
colors: {
  custom: {
    50: '#a96fc1',
    500: '#802fa6',
    950: '#000000',
  },
}
SCSS
$custom: #802fa6;
$custom-light: #a96fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#802fa6",
  "rgb": {
    "r": 128,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 280.84,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47792,
    "c": 0.18696,
    "h": 312.7
  },
  "luminance": 0.09375
}

Semantic roles & 50–950 ramp

primary
#802FA6
secondary
#8AC170
accent
#DF4979
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #802FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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