#802A97#802A97

#802A97 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.2% C 0.179 H 318.3°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#802A97
RGBrgb(128, 42, 151)
HSLhsl(287, 56%, 38%)
HSVhsv(287, 72%, 59%)
CMYKcmyk(15.2%, 72.2%, 0%, 40.8%)
CIE-LABlab(34.96, 52.41, -42.42)
CIE-LCHlch(34.96, 67.43, 321.01°)
OKLaboklab(46.24% 0.1334 -0.1191)
OKLCHoklch(46.24% 0.179 318.3)
XYZxyz(15.3152, 8.4802, 30.1023)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802A97 #41972A
analogous
#492A97 #802A97 #972A78
triadic
#802A97 #97802A #2A9780
tetradic
#802A97 #97492A #41972A #2A7897
square
#802A97 #97492A #41972A #2A7897
split-complementary
#802A97 #78972A #2A9749
monochromatic
#2F0F37 #571D67 #802A97 #A937C7 #BD67D5

Accessibility & contrast

On white

7.79
#802A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#802A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802A97
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802A97#FFFFFF#000000##FFFFFF
##802A971.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9A
Deuteranopia (green-blind)
#2F5594
Tritanopia (blue-blind)
#7F3F5E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #802a97;
/* rgb */ color: rgb(128, 42, 151);
/* oklch */ color: oklch(46.2% 0.179 318.3);
Tailwind
colors: {
  custom: {
    50: '#a86cb6',
    500: '#802a97',
    950: '#000000',
  },
}
SCSS
$custom: #802a97;
$custom-light: #a86cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#802a97",
  "rgb": {
    "r": 128,
    "g": 42,
    "b": 151
  },
  "hsl": {
    "h": 287.339,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.46235,
    "c": 0.17883,
    "h": 318.3
  },
  "luminance": 0.08479
}

Semantic roles & 50–950 ramp

primary
#802A97
secondary
#75BB62
accent
#E04868
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #802A97

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

Preview Lab → · Contrast checker → · Palette generator →

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