#802F97#802F97

#802F97 is a mid, vivid purple. Relative luminance 0.089; OKLCH L 46.8% C 0.172 H 317.9°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#802F97
RGBrgb(128, 47, 151)
HSLhsl(287, 53%, 39%)
HSVhsv(287, 69%, 59%)
CMYKcmyk(15.2%, 68.9%, 0%, 40.8%)
CIE-LABlab(35.71, 50.31, -41.23)
CIE-LCHlch(35.71, 65.05, 320.67°)
OKLaboklab(46.77% 0.128 -0.1156)
OKLCHoklch(46.77% 0.172 317.9)
XYZxyz(15.5037, 8.8573, 30.1651)
Luminance0.0886 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802F97 #46972F
analogous
#4C2F97 #802F97 #972F7A
triadic
#802F97 #97802F #2F9780
tetradic
#802F97 #974C2F #46972F #2F7A97
square
#802F97 #974C2F #46972F #2F7A97
split-complementary
#802F97 #7A972F #2F974C
monochromatic
#31123A #582068 #802F97 #A640C3 #BC6ED2

Accessibility & contrast

On white

7.58
#802F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#802F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802F97
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802F97#FFFFFF#000000##FFFFFF
##802F971.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9A
Deuteranopia (green-blind)
#335795
Tritanopia (blue-blind)
#7F425F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #802f97;
/* rgb */ color: rgb(128, 47, 151);
/* oklch */ color: oklch(46.8% 0.172 317.9);
Tailwind
colors: {
  custom: {
    50: '#a86eb6',
    500: '#802f97',
    950: '#000000',
  },
}
SCSS
$custom: #802f97;
$custom-light: #a86eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#802f97",
  "rgb": {
    "r": 128,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 286.731,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.46768,
    "c": 0.17244,
    "h": 317.9
  },
  "luminance": 0.08857
}

Semantic roles & 50–950 ramp

primary
#802F97
secondary
#7AB968
accent
#DC4C6C
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #802F97

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

Preview Lab → · Contrast checker → · Palette generator →

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