#802FAE#802FAE

#802FAE is a mid, vivid violet. Relative luminance 0.097; OKLCH L 48.4% C 0.195 H 310.1°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#802FAE
RGBrgb(128, 47, 174)
HSLhsl(278, 57%, 43%)
HSVhsv(278, 73%, 68%)
CMYKcmyk(26.4%, 73%, 0%, 31.8%)
CIE-LABlab(37.26, 55.19, -52.57)
CIE-LCHlch(37.26, 76.22, 316.39°)
OKLaboklab(48.37% 0.1256 -0.1489)
OKLCHoklch(48.37% 0.195 310.1)
XYZxyz(17.5571, 9.6786, 40.9795)
Luminance0.0968 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802FAE #5DAE2F
analogous
#412FAE #802FAE #AE2F9C
triadic
#802FAE #AE802F #2FAE80
tetradic
#802FAE #AE412F #5DAE2F #2F9CAE
square
#802FAE #AE412F #5DAE2F #2F9CAE
split-complementary
#802FAE #9CAE2F #2FAE41
monochromatic
#39154E #5D227E #802FAE #9F4CCF #B97CDC

Accessibility & contrast

On white

7.15
#802FAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#802FAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802FAE
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802FAE#FFFFFF#000000##FFFFFF
##802FAE1.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B2
Deuteranopia (green-blind)
#1559AB
Tritanopia (blue-blind)
#7A4C6C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #802fae;
/* rgb */ color: rgb(128, 47, 174);
/* oklch */ color: oklch(48.4% 0.195 310.1);
Tailwind
colors: {
  custom: {
    50: '#a96fc7',
    500: '#802fae',
    950: '#000000',
  },
}
SCSS
$custom: #802fae;
$custom-light: #a96fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#802fae",
  "rgb": {
    "r": 128,
    "g": 47,
    "b": 174
  },
  "hsl": {
    "h": 278.268,
    "s": 57.466,
    "l": 43.333
  },
  "oklch": {
    "l": 0.48369,
    "c": 0.19478,
    "h": 310.1
  },
  "luminance": 0.09678
}

Semantic roles & 50–950 ramp

primary
#802FAE
secondary
#91C475
accent
#E1477F
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #802FAE

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

Preview Lab → · Contrast checker → · Palette generator →

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