#802C8E#802C8E

#802C8E is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.9% C 0.168 H 321.6°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#802C8E
RGBrgb(128, 44, 142)
HSLhsl(291, 53%, 36%)
HSVhsv(291, 69%, 56%)
CMYKcmyk(9.9%, 69%, 0%, 44.3%)
CIE-LABlab(34.69, 49.80, -37.35)
CIE-LCHlch(34.69, 62.25, 323.13°)
OKLaboklab(45.86% 0.1317 -0.1042)
OKLCHoklch(45.86% 0.168 321.6)
XYZxyz(14.6847, 8.3443, 26.4231)
Luminance0.0834 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802C8E #3A8E2C
analogous
#4F2C8E #802C8E #8E2C6B
triadic
#802C8E #8E802C #2C8E80
tetradic
#802C8E #8E4F2C #3A8E2C #2C6B8E
square
#802C8E #8E4F2C #3A8E2C #2C6B8E
split-complementary
#802C8E #6B8E2C #2C8E4F
monochromatic
#2C0F31 #561E5F #802C8E #AA3ABD #C065CF

Accessibility & contrast

On white

7.87
#802C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#802C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802C8E
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802C8E#FFFFFF#000000##FFFFFF
##802C8E1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4C91
Deuteranopia (green-blind)
#38558C
Tritanopia (blue-blind)
#813D59
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #802c8e;
/* rgb */ color: rgb(128, 44, 142);
/* oklch */ color: oklch(45.9% 0.168 321.6);
Tailwind
colors: {
  custom: {
    50: '#a86caf',
    500: '#802c8e',
    950: '#000000',
  },
}
SCSS
$custom: #802c8e;
$custom-light: #a86caf;
$custom-dark: #000000;
JSON
{
  "hex": "#802c8e",
  "rgb": {
    "r": 128,
    "g": 44,
    "b": 142
  },
  "hsl": {
    "h": 291.429,
    "s": 52.688,
    "l": 36.471
  },
  "oklch": {
    "l": 0.45858,
    "c": 0.16795,
    "h": 321.6
  },
  "luminance": 0.08344
}

Semantic roles & 50–950 ramp

primary
#802C8E
secondary
#6CB660
accent
#DC4C60
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #802C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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