#802C9E#802C9E

#802C9E is a mid, vivid purple. Relative luminance 0.089; OKLCH L 46.9% C 0.183 H 315.6°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#802C9E
RGBrgb(128, 44, 158)
HSLhsl(284, 56%, 40%)
HSVhsv(284, 72%, 62%)
CMYKcmyk(19%, 72.2%, 0%, 38%)
CIE-LABlab(35.71, 53.02, -45.47)
CIE-LCHlch(35.71, 69.85, 319.39°)
OKLaboklab(46.92% 0.1307 -0.128)
OKLCHoklch(46.92% 0.183 315.6)
XYZxyz(15.9733, 8.8598, 33.2098)
Luminance0.0886 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802C9E #4A9E2C
analogous
#472C9E #802C9E #9E2C83
triadic
#802C9E #9E802C #2C9E80
tetradic
#802C9E #9E472C #4A9E2C #2C839E
square
#802C9E #9E472C #4A9E2C #2C839E
split-complementary
#802C9E #839E2C #2C9E47
monochromatic
#32113E #591F6E #802C9E #A53EC9 #BB6ED7

Accessibility & contrast

On white

7.58
#802C9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#802C9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802C9E
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802C9E#FFFFFF#000000##FFFFFF
##802C9E1.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA1
Deuteranopia (green-blind)
#2A569B
Tritanopia (blue-blind)
#7E4462
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #802c9e;
/* rgb */ color: rgb(128, 44, 158);
/* oklch */ color: oklch(46.9% 0.183 315.6);
Tailwind
colors: {
  custom: {
    50: '#a86dbb',
    500: '#802c9e',
    950: '#000000',
  },
}
SCSS
$custom: #802c9e;
$custom-light: #a86dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#802c9e",
  "rgb": {
    "r": 128,
    "g": 44,
    "b": 158
  },
  "hsl": {
    "h": 284.211,
    "s": 56.436,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46917,
    "c": 0.18294,
    "h": 315.6
  },
  "luminance": 0.08859
}

Semantic roles & 50–950 ramp

primary
#802C9E
secondary
#7FBE68
accent
#E04870
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #802C9E

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

Preview Lab → · Contrast checker → · Palette generator →

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