#802E9F#802E9F

#802E9F is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.2% C 0.181 H 315.1°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#802E9F
RGBrgb(128, 46, 159)
HSLhsl(284, 55%, 40%)
HSVhsv(284, 71%, 62%)
CMYKcmyk(19.5%, 71.1%, 0%, 37.6%)
CIE-LABlab(36.07, 52.40, -45.49)
CIE-LCHlch(36.07, 69.39, 319.04°)
OKLaboklab(47.2% 0.1285 -0.1281)
OKLCHoklch(47.2% 0.181 315.1)
XYZxyz(16.1361, 9.0470, 33.6904)
Luminance0.0905 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802E9F #4D9F2E
analogous
#482E9F #802E9F #9F2E85
triadic
#802E9F #9F802E #2E9F80
tetradic
#802E9F #9F482E #4D9F2E #2E859F
square
#802E9F #9F482E #4D9F2E #2E859F
split-complementary
#802E9F #859F2E #2E9F48
monochromatic
#341340 #5A2070 #802E9F #A342C8 #BA71D6

Accessibility & contrast

On white

7.48
#802E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#802E9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802E9F
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802E9F#FFFFFF#000000##FFFFFF
##802E9F1.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A2
Deuteranopia (green-blind)
#2B579C
Tritanopia (blue-blind)
#7E4563
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #802e9f;
/* rgb */ color: rgb(128, 46, 159);
/* oklch */ color: oklch(47.2% 0.181 315.1);
Tailwind
colors: {
  custom: {
    50: '#a86ebc',
    500: '#802e9f',
    950: '#000000',
  },
}
SCSS
$custom: #802e9f;
$custom-light: #a86ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#802e9f",
  "rgb": {
    "r": 128,
    "g": 46,
    "b": 159
  },
  "hsl": {
    "h": 283.54,
    "s": 55.122,
    "l": 40.196
  },
  "oklch": {
    "l": 0.47197,
    "c": 0.18142,
    "h": 315.1
  },
  "luminance": 0.09046
}

Semantic roles & 50–950 ramp

primary
#802E9F
secondary
#82BE6B
accent
#DE4972
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #802E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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