#802F96#802F96

#802F96 is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.7% C 0.171 H 318.3°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#802F96
RGBrgb(128, 47, 150)
HSLhsl(287, 52%, 39%)
HSVhsv(287, 69%, 59%)
CMYKcmyk(14.7%, 68.7%, 0%, 41.2%)
CIE-LABlab(35.65, 50.11, -40.72)
CIE-LCHlch(35.65, 64.57, 320.90°)
OKLaboklab(46.7% 0.128 -0.1141)
OKLCHoklch(46.7% 0.171 318.3)
XYZxyz(15.4229, 8.8249, 29.7392)
Luminance0.0882 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802F96 #45962F
analogous
#4C2F96 #802F96 #962F78
triadic
#802F96 #96802F #2F9680
tetradic
#802F96 #964C2F #45962F #2F7896
square
#802F96 #964C2F #45962F #2F7896
split-complementary
#802F96 #78962F #2F964C
monochromatic
#301239 #582067 #802F96 #A73FC3 #BC6ED2

Accessibility & contrast

On white

7.60
#802F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#802F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802F96
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802F96#FFFFFF#000000##FFFFFF
##802F961.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#014F99
Deuteranopia (green-blind)
#345694
Tritanopia (blue-blind)
#80425F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #802f96;
/* rgb */ color: rgb(128, 47, 150);
/* oklch */ color: oklch(46.7% 0.171 318.3);
Tailwind
colors: {
  custom: {
    50: '#a86eb5',
    500: '#802f96',
    950: '#000000',
  },
}
SCSS
$custom: #802f96;
$custom-light: #a86eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#802f96",
  "rgb": {
    "r": 128,
    "g": 47,
    "b": 150
  },
  "hsl": {
    "h": 287.184,
    "s": 52.284,
    "l": 38.627
  },
  "oklch": {
    "l": 0.46703,
    "c": 0.17149,
    "h": 318.3
  },
  "luminance": 0.08824
}

Semantic roles & 50–950 ramp

primary
#802F96
secondary
#79B968
accent
#DC4C6B
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #802F96

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

Preview Lab → · Contrast checker → · Palette generator →

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