#802C9F#802C9F

#802C9F is a mid, vivid purple. Relative luminance 0.089; OKLCH L 47.0% C 0.184 H 315.3°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#802C9F
RGBrgb(128, 44, 159)
HSLhsl(284, 57%, 40%)
HSVhsv(284, 72%, 62%)
CMYKcmyk(19.5%, 72.3%, 0%, 37.6%)
CIE-LABlab(35.78, 53.23, -45.96)
CIE-LCHlch(35.78, 70.33, 319.19°)
OKLaboklab(46.99% 0.1306 -0.1294)
OKLCHoklch(46.99% 0.184 315.3)
XYZxyz(16.0598, 8.8943, 33.6650)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802C9F #4B9F2C
analogous
#472C9F #802C9F #9F2C85
triadic
#802C9F #9F802C #2C9F80
tetradic
#802C9F #9F472C #4B9F2C #2C859F
square
#802C9F #9F472C #4B9F2C #2C859F
split-complementary
#802C9F #859F2C #2C9F47
monochromatic
#33113F #591F6F #802C9F #A43ECA #BB6ED7

Accessibility & contrast

On white

7.56
#802C9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#802C9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802C9F
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802C9F#FFFFFF#000000##FFFFFF
##802C9F1.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA2
Deuteranopia (green-blind)
#29569C
Tritanopia (blue-blind)
#7E4463
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #802c9f;
/* rgb */ color: rgb(128, 44, 159);
/* oklch */ color: oklch(47.0% 0.184 315.3);
Tailwind
colors: {
  custom: {
    50: '#a96dbc',
    500: '#802c9f',
    950: '#000000',
  },
}
SCSS
$custom: #802c9f;
$custom-light: #a96dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#802c9f",
  "rgb": {
    "r": 128,
    "g": 44,
    "b": 159
  },
  "hsl": {
    "h": 283.826,
    "s": 56.65,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46987,
    "c": 0.18388,
    "h": 315.3
  },
  "luminance": 0.08894
}

Semantic roles & 50–950 ramp

primary
#802C9F
secondary
#80BE69
accent
#E04871
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #802C9F

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

Preview Lab → · Contrast checker → · Palette generator →

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