#802C94#802C94

#802C94 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.2% C 0.174 H 319.3°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#802C94
RGBrgb(128, 44, 148)
HSLhsl(288, 54%, 38%)
HSVhsv(288, 70%, 58%)
CMYKcmyk(13.5%, 70.3%, 0%, 42%)
CIE-LABlab(35.06, 50.99, -40.43)
CIE-LCHlch(35.06, 65.08, 321.59°)
OKLaboklab(46.24% 0.1315 -0.1133)
OKLCHoklch(46.24% 0.174 319.3)
XYZxyz(15.1474, 8.5294, 28.8597)
Luminance0.0853 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802C94 #40942C
analogous
#4C2C94 #802C94 #942C74
triadic
#802C94 #94802C #2C9480
tetradic
#802C94 #944C2C #40942C #2C7494
square
#802C94 #944C2C #40942C #2C7494
split-complementary
#802C94 #74942C #2C944C
monochromatic
#2E1036 #571E65 #802C94 #A93AC3 #BE68D2

Accessibility & contrast

On white

7.76
#802C94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#802C94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802C94
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802C94#FFFFFF#000000##FFFFFF
##802C941.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D97
Deuteranopia (green-blind)
#335592
Tritanopia (blue-blind)
#803F5D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #802c94;
/* rgb */ color: rgb(128, 44, 148);
/* oklch */ color: oklch(46.2% 0.174 319.3);
Tailwind
colors: {
  custom: {
    50: '#a86db4',
    500: '#802c94',
    950: '#000000',
  },
}
SCSS
$custom: #802c94;
$custom-light: #a86db4;
$custom-dark: #000000;
JSON
{
  "hex": "#802c94",
  "rgb": {
    "r": 128,
    "g": 44,
    "b": 148
  },
  "hsl": {
    "h": 288.462,
    "s": 54.167,
    "l": 37.647
  },
  "oklch": {
    "l": 0.46244,
    "c": 0.17353,
    "h": 319.3
  },
  "luminance": 0.08529
}

Semantic roles & 50–950 ramp

primary
#802C94
secondary
#74B963
accent
#DE4A67
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #802C94

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

Preview Lab → · Contrast checker → · Palette generator →

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