#802A8A#802A8A

#802A8A is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.4% C 0.167 H 323.4°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#802A8A
RGBrgb(128, 42, 138)
HSLhsl(294, 53%, 35%)
HSVhsv(294, 70%, 54%)
CMYKcmyk(7.2%, 69.6%, 0%, 45.9%)
CIE-LABlab(34.15, 49.87, -35.75)
CIE-LCHlch(34.15, 61.36, 324.37°)
OKLaboklab(45.39% 0.134 -0.0996)
OKLCHoklch(45.39% 0.167 323.4)
XYZxyz(14.3171, 8.0809, 24.8455)
Luminance0.0808 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802A8A #348A2A
analogous
#502A8A #802A8A #8A2A64
triadic
#802A8A #8A802A #2A8A80
tetradic
#802A8A #8A502A #348A2A #2A648A
square
#802A8A #8A502A #348A2A #2A648A
split-complementary
#802A8A #648A2A #2A8A50
monochromatic
#290D2C #541C5B #802A8A #AC38B9 #C360CF

Accessibility & contrast

On white

8.03
#802A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #802A8A
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802A8A#FFFFFF#000000##FFFFFF
##802A8A1.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104A8D
Deuteranopia (green-blind)
#395488
Tritanopia (blue-blind)
#823A57
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #802a8a;
/* rgb */ color: rgb(128, 42, 138);
/* oklch */ color: oklch(45.4% 0.167 323.4);
Tailwind
colors: {
  custom: {
    50: '#a86bac',
    500: '#802a8a',
    950: '#000000',
  },
}
SCSS
$custom: #802a8a;
$custom-light: #a86bac;
$custom-dark: #000000;
JSON
{
  "hex": "#802a8a",
  "rgb": {
    "r": 128,
    "g": 42,
    "b": 138
  },
  "hsl": {
    "h": 293.75,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.45392,
    "c": 0.16695,
    "h": 323.4
  },
  "luminance": 0.0808
}

Semantic roles & 50–950 ramp

primary
#802A8A
secondary
#65B45B
accent
#DD4B5A
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #802A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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