#802A9F#802A9F

#802A9F is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.8% C 0.186 H 315.4°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#802A9F
RGBrgb(128, 42, 159)
HSLhsl(284, 58%, 39%)
HSVhsv(284, 74%, 62%)
CMYKcmyk(19.5%, 73.6%, 0%, 37.6%)
CIE-LABlab(35.50, 54.04, -46.42)
CIE-LCHlch(35.50, 71.24, 319.34°)
OKLaboklab(46.79% 0.1326 -0.1308)
OKLCHoklch(46.79% 0.186 315.4)
XYZxyz(15.9871, 8.7489, 33.6407)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802A9F #499F2A
analogous
#462A9F #802A9F #9F2A83
triadic
#802A9F #9F802A #2A9F80
tetradic
#802A9F #9F462A #499F2A #2A839F
square
#802A9F #9F462A #499F2A #2A839F
split-complementary
#802A9F #839F2A #2A9F46
monochromatic
#32103E #591D6F #802A9F #A53BCB #BB6BD8

Accessibility & contrast

On white

7.64
#802A9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#802A9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802A9F
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802A9F#FFFFFF#000000##FFFFFF
##802A9F1.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA2
Deuteranopia (green-blind)
#27569C
Tritanopia (blue-blind)
#7E4362
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #802a9f;
/* rgb */ color: rgb(128, 42, 159);
/* oklch */ color: oklch(46.8% 0.186 315.4);
Tailwind
colors: {
  custom: {
    50: '#a96cbc',
    500: '#802a9f',
    950: '#000000',
  },
}
SCSS
$custom: #802a9f;
$custom-light: #a96cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#802a9f",
  "rgb": {
    "r": 128,
    "g": 42,
    "b": 159
  },
  "hsl": {
    "h": 284.103,
    "s": 58.209,
    "l": 39.412
  },
  "oklch": {
    "l": 0.46785,
    "c": 0.18627,
    "h": 315.4
  },
  "luminance": 0.08748
}

Semantic roles & 50–950 ramp

primary
#802A9F
secondary
#7EBF66
accent
#E1466F
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #802A9F

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

Preview Lab → · Contrast checker → · Palette generator →

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