#802E8F#802E8F

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

Color values

HEX#802E8F
RGBrgb(128, 46, 143)
HSLhsl(291, 51%, 37%)
HSVhsv(291, 68%, 56%)
CMYKcmyk(10.5%, 67.8%, 0%, 43.9%)
CIE-LABlab(35.06, 49.14, -37.38)
CIE-LCHlch(35.06, 61.74, 322.74°)
OKLaboklab(46.14% 0.1294 -0.1043)
OKLCHoklch(46.14% 0.166 321.1)
XYZxyz(14.8364, 8.5271, 26.8457)
Luminance0.0853 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802E8F #3D8F2E
analogous
#502E8F #802E8F #8F2E6E
triadic
#802E8F #8F802E #2E8F80
tetradic
#802E8F #8F502E #3D8F2E #2E6E8F
square
#802E8F #8F502E #3D8F2E #2E6E8F
split-complementary
#802E8F #6E8F2E #2E8F50
monochromatic
#2D1032 #571F61 #802E8F #A93DBD #BF69CF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##802E8F#FFFFFF#000000##FFFFFF
##802E8F1.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)
#104D92
Deuteranopia (green-blind)
#38558D
Tritanopia (blue-blind)
#813F5A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #802e8f;
/* rgb */ color: rgb(128, 46, 143);
/* oklch */ color: oklch(46.1% 0.166 321.1);
Tailwind
colors: {
  custom: {
    50: '#a86db0',
    500: '#802e8f',
    950: '#000000',
  },
}
SCSS
$custom: #802e8f;
$custom-light: #a86db0;
$custom-dark: #000000;
JSON
{
  "hex": "#802e8f",
  "rgb": {
    "r": 128,
    "g": 46,
    "b": 143
  },
  "hsl": {
    "h": 290.722,
    "s": 51.323,
    "l": 37.059
  },
  "oklch": {
    "l": 0.46141,
    "c": 0.16619,
    "h": 321.1
  },
  "luminance": 0.08526
}

Semantic roles & 50–950 ramp

primary
#802E8F
secondary
#70B663
accent
#DB4D63
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #802E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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