#802C9D#802C9D

#802C9D is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.8% C 0.182 H 315.9°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#802C9D
RGBrgb(128, 44, 157)
HSLhsl(285, 56%, 39%)
HSVhsv(285, 72%, 62%)
CMYKcmyk(18.5%, 72%, 0%, 38.4%)
CIE-LABlab(35.65, 52.82, -44.97)
CIE-LCHlch(35.65, 69.37, 319.59°)
OKLaboklab(46.85% 0.1308 -0.1265)
OKLCHoklch(46.85% 0.182 315.9)
XYZxyz(15.8876, 8.8255, 32.7583)
Luminance0.0882 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802C9D #499D2C
analogous
#482C9D #802C9D #9D2C82
triadic
#802C9D #9D802C #2C9D80
tetradic
#802C9D #9D482C #499D2C #2C829D
square
#802C9D #9D482C #499D2C #2C829D
split-complementary
#802C9D #829D2C #2C9D48
monochromatic
#32113D #591F6D #802C9D #A53DC9 #BB6DD6

Accessibility & contrast

On white

7.59
#802C9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#802C9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802C9D
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802C9D#FFFFFF#000000##FFFFFF
##802C9D1.007.592.767.59
#FFFFFF7.591.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA0
Deuteranopia (green-blind)
#2B569A
Tritanopia (blue-blind)
#7E4362
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #802c9d;
/* rgb */ color: rgb(128, 44, 157);
/* oklch */ color: oklch(46.8% 0.182 315.9);
Tailwind
colors: {
  custom: {
    50: '#a86dba',
    500: '#802c9d',
    950: '#000000',
  },
}
SCSS
$custom: #802c9d;
$custom-light: #a86dba;
$custom-dark: #000000;
JSON
{
  "hex": "#802c9d",
  "rgb": {
    "r": 128,
    "g": 44,
    "b": 157
  },
  "hsl": {
    "h": 284.602,
    "s": 56.219,
    "l": 39.412
  },
  "oklch": {
    "l": 0.46848,
    "c": 0.18199,
    "h": 315.9
  },
  "luminance": 0.08825
}

Semantic roles & 50–950 ramp

primary
#802C9D
secondary
#7EBD68
accent
#E0486F
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #802C9D

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

Preview Lab → · Contrast checker → · Palette generator →

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