#802A8B#802A8B

#802A8B is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.5% C 0.168 H 323.0°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#802A8B
RGBrgb(128, 42, 139)
HSLhsl(293, 54%, 35%)
HSVhsv(293, 70%, 55%)
CMYKcmyk(7.9%, 69.8%, 0%, 45.5%)
CIE-LABlab(34.21, 50.06, -36.27)
CIE-LCHlch(34.21, 61.82, 324.08°)
OKLaboklab(45.46% 0.134 -0.1011)
OKLCHoklch(45.46% 0.168 323)
XYZxyz(14.3898, 8.1100, 25.2285)
Luminance0.0811 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802A8B #358B2A
analogous
#4F2A8B #802A8B #8B2A65
triadic
#802A8B #8B802A #2A8B80
tetradic
#802A8B #8B4F2A #358B2A #2A658B
square
#802A8B #8B4F2A #358B2A #2A658B
split-complementary
#802A8B #658B2A #2A8B4F
monochromatic
#290E2D #551C5C #802A8B #AB38BA #C360CF

Accessibility & contrast

On white

8.01
#802A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#802A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802A8B
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802A8B#FFFFFF#000000##FFFFFF
##802A8B1.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4A8E
Deuteranopia (green-blind)
#395489
Tritanopia (blue-blind)
#823A57
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #802a8b;
/* rgb */ color: rgb(128, 42, 139);
/* oklch */ color: oklch(45.5% 0.168 323.0);
Tailwind
colors: {
  custom: {
    50: '#a86bad',
    500: '#802a8b',
    950: '#000000',
  },
}
SCSS
$custom: #802a8b;
$custom-light: #a86bad;
$custom-dark: #000000;
JSON
{
  "hex": "#802a8b",
  "rgb": {
    "r": 128,
    "g": 42,
    "b": 139
  },
  "hsl": {
    "h": 293.196,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.45455,
    "c": 0.16785,
    "h": 323
  },
  "luminance": 0.08109
}

Semantic roles & 50–950 ramp

primary
#802A8B
secondary
#66B55C
accent
#DD4B5B
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #802A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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