#802D8E#802D8E

#802D8E is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.0% C 0.167 H 321.6°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#802D8E
RGBrgb(128, 45, 142)
HSLhsl(291, 52%, 37%)
HSVhsv(291, 68%, 56%)
CMYKcmyk(9.9%, 68.3%, 0%, 44.3%)
CIE-LABlab(34.84, 49.38, -37.11)
CIE-LCHlch(34.84, 61.77, 323.07°)
OKLaboklab(45.97% 0.1305 -0.1035)
OKLCHoklch(45.97% 0.167 321.6)
XYZxyz(14.7224, 8.4197, 26.4356)
Luminance0.0842 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802D8E #3B8E2D
analogous
#502D8E #802D8E #8E2D6C
triadic
#802D8E #8E802D #2D8E80
tetradic
#802D8E #8E502D #3B8E2D #2D6C8E
square
#802D8E #8E502D #3B8E2D #2D6C8E
split-complementary
#802D8E #6C8E2D #2D8E50
monochromatic
#2C1031 #561E60 #802D8E #AA3CBC #C067CF

Accessibility & contrast

On white

7.82
#802D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#802D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802D8E
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802D8E#FFFFFF#000000##FFFFFF
##802D8E1.007.822.687.82
#FFFFFF7.821.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104C91
Deuteranopia (green-blind)
#38558C
Tritanopia (blue-blind)
#813E5A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #802d8e;
/* rgb */ color: rgb(128, 45, 142);
/* oklch */ color: oklch(46.0% 0.167 321.6);
Tailwind
colors: {
  custom: {
    50: '#a86daf',
    500: '#802d8e',
    950: '#000000',
  },
}
SCSS
$custom: #802d8e;
$custom-light: #a86daf;
$custom-dark: #000000;
JSON
{
  "hex": "#802d8e",
  "rgb": {
    "r": 128,
    "g": 45,
    "b": 142
  },
  "hsl": {
    "h": 291.34,
    "s": 51.872,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45967,
    "c": 0.16662,
    "h": 321.6
  },
  "luminance": 0.08419
}

Semantic roles & 50–950 ramp

primary
#802D8E
secondary
#6EB561
accent
#DB4C61
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #802D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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