#802E8E#802E8E

#802E8E is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.1% C 0.165 H 321.5°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#802E8E
RGBrgb(128, 46, 142)
HSLhsl(291, 51%, 37%)
HSVhsv(291, 68%, 56%)
CMYKcmyk(9.9%, 67.6%, 0%, 44.3%)
CIE-LABlab(35.00, 48.94, -36.86)
CIE-LCHlch(35.00, 61.27, 323.01°)
OKLaboklab(46.08% 0.1294 -0.1028)
OKLCHoklch(46.08% 0.165 321.5)
XYZxyz(14.7610, 8.4969, 26.4485)
Luminance0.0850 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802E8E #3C8E2E
analogous
#502E8E #802E8E #8E2E6C
triadic
#802E8E #8E802E #2E8E80
tetradic
#802E8E #8E502E #3C8E2E #2E6C8E
square
#802E8E #8E502E #3C8E2E #2E6C8E
split-complementary
#802E8E #6C8E2E #2E8E50
monochromatic
#2D1032 #561F60 #802E8E #AA3DBC #BF68CE

Accessibility & contrast

On white

7.78
#802E8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#802E8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802E8E
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802E8E#FFFFFF#000000##FFFFFF
##802E8E1.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #802e8e;
/* rgb */ color: rgb(128, 46, 142);
/* oklch */ color: oklch(46.1% 0.165 321.5);
Tailwind
colors: {
  custom: {
    50: '#a86daf',
    500: '#802e8e',
    950: '#000000',
  },
}
SCSS
$custom: #802e8e;
$custom-light: #a86daf;
$custom-dark: #000000;
JSON
{
  "hex": "#802e8e",
  "rgb": {
    "r": 128,
    "g": 46,
    "b": 142
  },
  "hsl": {
    "h": 291.25,
    "s": 51.064,
    "l": 36.863
  },
  "oklch": {
    "l": 0.46079,
    "c": 0.16526,
    "h": 321.5
  },
  "luminance": 0.08496
}

Semantic roles & 50–950 ramp

primary
#802E8E
secondary
#6FB563
accent
#DB4D62
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #802E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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