#802C7E#802C7E

#802C7E is a dark, vivid purple. Relative luminance 0.079; OKLCH L 44.9% C 0.154 H 328.7°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#802C7E
RGBrgb(128, 44, 126)
HSLhsl(301, 49%, 34%)
HSVhsv(301, 66%, 50%)
CMYKcmyk(0%, 65.6%, 1.6%, 49.8%)
CIE-LABlab(33.77, 46.80, -28.90)
CIE-LCHlch(33.77, 55.00, 328.30°)
OKLaboklab(44.9% 0.1313 -0.0797)
OKLCHoklch(44.9% 0.154 328.7)
XYZxyz(13.5685, 7.8978, 20.5444)
Luminance0.0790 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802C7E #2C802E
analogous
#582C80 #802C7E #802C54
triadic
#802C7E #7E802C #2C7E80
tetradic
#802C7E #80582C #2C802E #2C5480
square
#802C7E #80582C #2C802E #2C5480
split-complementary
#802C7E #54802C #2C8058
monochromatic
#250D24 #521C51 #802C7E #AE3CAB #C85FC5

Accessibility & contrast

On white

8.14
#802C7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#802C7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802C7E
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802C7E#FFFFFF#000000##FFFFFF
##802C7E1.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234880
Deuteranopia (green-blind)
#41537C
Tritanopia (blue-blind)
#843651
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #802c7e;
/* rgb */ color: rgb(128, 44, 126);
/* oklch */ color: oklch(44.9% 0.154 328.7);
Tailwind
colors: {
  custom: {
    50: '#a86ca4',
    500: '#802c7e',
    950: '#000000',
  },
}
SCSS
$custom: #802c7e;
$custom-light: #a86ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#802c7e",
  "rgb": {
    "r": 128,
    "g": 44,
    "b": 126
  },
  "hsl": {
    "h": 301.429,
    "s": 48.837,
    "l": 33.725
  },
  "oklch": {
    "l": 0.44895,
    "c": 0.15357,
    "h": 328.7
  },
  "luminance": 0.07897
}

Semantic roles & 50–950 ramp

primary
#802C7E
secondary
#5AAE5C
accent
#D8534F
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #802C7E

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

Preview Lab → · Contrast checker → · Palette generator →

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