#802C97#802C97

#802C97 is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.4% C 0.176 H 318.1°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#802C97
RGBrgb(128, 44, 151)
HSLhsl(287, 55%, 38%)
HSVhsv(287, 71%, 59%)
CMYKcmyk(15.2%, 70.9%, 0%, 40.8%)
CIE-LABlab(35.25, 51.59, -41.96)
CIE-LCHlch(35.25, 66.50, 320.88°)
OKLaboklab(46.44% 0.1313 -0.1177)
OKLCHoklch(46.44% 0.176 318.1)
XYZxyz(15.3879, 8.6256, 30.1265)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802C97 #43972C
analogous
#4A2C97 #802C97 #972C78
triadic
#802C97 #97802C #2C9780
tetradic
#802C97 #974A2C #43972C #2C7897
square
#802C97 #974A2C #43972C #2C7897
split-complementary
#802C97 #78972C #2C974A
monochromatic
#301038 #581E68 #802C97 #A83AC6 #BD6AD4

Accessibility & contrast

On white

7.71
#802C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#802C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802C97
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802C97#FFFFFF#000000##FFFFFF
##802C971.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9A
Deuteranopia (green-blind)
#315695
Tritanopia (blue-blind)
#7F415E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #802c97;
/* rgb */ color: rgb(128, 44, 151);
/* oklch */ color: oklch(46.4% 0.176 318.1);
Tailwind
colors: {
  custom: {
    50: '#a86db6',
    500: '#802c97',
    950: '#000000',
  },
}
SCSS
$custom: #802c97;
$custom-light: #a86db6;
$custom-dark: #000000;
JSON
{
  "hex": "#802c97",
  "rgb": {
    "r": 128,
    "g": 44,
    "b": 151
  },
  "hsl": {
    "h": 287.103,
    "s": 54.872,
    "l": 38.235
  },
  "oklch": {
    "l": 0.46442,
    "c": 0.17633,
    "h": 318.1
  },
  "luminance": 0.08625
}

Semantic roles & 50–950 ramp

primary
#802C97
secondary
#77BA65
accent
#DE4A6A
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #802C97

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

Preview Lab → · Contrast checker → · Palette generator →

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