#802B8E#802B8E

#802B8E is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.8% C 0.169 H 321.7°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#802B8E
RGBrgb(128, 43, 142)
HSLhsl(292, 54%, 36%)
HSVhsv(292, 70%, 56%)
CMYKcmyk(9.9%, 69.7%, 0%, 44.3%)
CIE-LABlab(34.54, 50.22, -37.59)
CIE-LCHlch(34.54, 62.73, 323.19°)
OKLaboklab(45.75% 0.1328 -0.1049)
OKLCHoklch(45.75% 0.169 321.7)
XYZxyz(14.6479, 8.2707, 26.4108)
Luminance0.0827 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802B8E #398E2B
analogous
#4F2B8E #802B8E #8E2B6B
triadic
#802B8E #8E802B #2B8E80
tetradic
#802B8E #8E4F2B #398E2B #2B6B8E
square
#802B8E #8E4F2B #398E2B #2B6B8E
split-complementary
#802B8E #6B8E2B #2B8E4F
monochromatic
#2B0F30 #561D5F #802B8E #AA39BD #C163D0

Accessibility & contrast

On white

7.91
#802B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#802B8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802B8E
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802B8E#FFFFFF#000000##FFFFFF
##802B8E1.007.912.657.91
#FFFFFF7.911.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A4B91
Deuteranopia (green-blind)
#37548C
Tritanopia (blue-blind)
#813C59
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #802b8e;
/* rgb */ color: rgb(128, 43, 142);
/* oklch */ color: oklch(45.8% 0.169 321.7);
Tailwind
colors: {
  custom: {
    50: '#a86caf',
    500: '#802b8e',
    950: '#000000',
  },
}
SCSS
$custom: #802b8e;
$custom-light: #a86caf;
$custom-dark: #000000;
JSON
{
  "hex": "#802b8e",
  "rgb": {
    "r": 128,
    "g": 43,
    "b": 142
  },
  "hsl": {
    "h": 291.515,
    "s": 53.514,
    "l": 36.275
  },
  "oklch": {
    "l": 0.4575,
    "c": 0.16927,
    "h": 321.7
  },
  "luminance": 0.0827
}

Semantic roles & 50–950 ramp

primary
#802B8E
secondary
#6BB65F
accent
#DD4B60
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #802B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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