#802FA1#802FA1

#802FA1 is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.4% C 0.182 H 314.3°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#802FA1
RGBrgb(128, 47, 161)
HSLhsl(283, 55%, 41%)
HSVhsv(283, 71%, 63%)
CMYKcmyk(20.5%, 70.8%, 0%, 36.9%)
CIE-LABlab(36.36, 52.39, -46.24)
CIE-LCHlch(36.36, 69.88, 318.57°)
OKLaboklab(47.44% 0.1272 -0.1303)
OKLCHoklch(47.44% 0.182 314.3)
XYZxyz(16.3505, 9.1960, 34.6250)
Luminance0.0920 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802FA1 #50A12F
analogous
#472FA1 #802FA1 #A12F89
triadic
#802FA1 #A1802F #2FA180
tetradic
#802FA1 #A1472F #50A12F #2F89A1
square
#802FA1 #A1472F #50A12F #2F89A1
split-complementary
#802FA1 #89A12F #2FA147
monochromatic
#351342 #5A2172 #802FA1 #A245C9 #BA74D6

Accessibility & contrast

On white

7.40
#802FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#802FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802FA1
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802FA1#FFFFFF#000000##FFFFFF
##802FA11.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A4
Deuteranopia (green-blind)
#29589E
Tritanopia (blue-blind)
#7D4765
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #802fa1;
/* rgb */ color: rgb(128, 47, 161);
/* oklch */ color: oklch(47.4% 0.182 314.3);
Tailwind
colors: {
  custom: {
    50: '#a86fbd',
    500: '#802fa1',
    950: '#000000',
  },
}
SCSS
$custom: #802fa1;
$custom-light: #a86fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#802fa1",
  "rgb": {
    "r": 128,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 282.632,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.47442,
    "c": 0.18209,
    "h": 314.3
  },
  "luminance": 0.09195
}

Semantic roles & 50–950 ramp

primary
#802FA1
secondary
#85BE6E
accent
#DE4A75
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #802FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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