#802F8A#802F8A

#802F8A is a mid, vivid purple. Relative luminance 0.085; OKLCH L 45.9% C 0.160 H 323.1°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#802F8A
RGBrgb(128, 47, 138)
HSLhsl(293, 49%, 36%)
HSVhsv(293, 66%, 54%)
CMYKcmyk(7.2%, 65.9%, 0%, 45.9%)
CIE-LABlab(34.92, 47.72, -34.53)
CIE-LCHlch(34.92, 58.90, 324.11°)
OKLaboklab(45.95% 0.1281 -0.096)
OKLCHoklch(45.95% 0.16 323.1)
XYZxyz(14.5056, 8.4580, 24.9083)
Luminance0.0846 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802F8A #398A2F
analogous
#532F8A #802F8A #8A2F67
triadic
#802F8A #8A802F #2F8A80
tetradic
#802F8A #8A532F #398A2F #2F678A
square
#802F8A #8A532F #398A2F #2F678A
split-complementary
#802F8A #678A2F #2F8A53
monochromatic
#2B102F #561F5C #802F8A #AA3FB8 #C168CC

Accessibility & contrast

On white

7.80
#802F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#802F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802F8A
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802F8A#FFFFFF#000000##FFFFFF
##802F8A1.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4C8D
Deuteranopia (green-blind)
#3C5588
Tritanopia (blue-blind)
#823D58
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #802f8a;
/* rgb */ color: rgb(128, 47, 138);
/* oklch */ color: oklch(45.9% 0.160 323.1);
Tailwind
colors: {
  custom: {
    50: '#a86eac',
    500: '#802f8a',
    950: '#000000',
  },
}
SCSS
$custom: #802f8a;
$custom-light: #a86eac;
$custom-dark: #000000;
JSON
{
  "hex": "#802f8a",
  "rgb": {
    "r": 128,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 293.407,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.45946,
    "c": 0.16014,
    "h": 323.1
  },
  "luminance": 0.08457
}

Semantic roles & 50–950 ramp

primary
#802F8A
secondary
#6BB362
accent
#D94F5E
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #802F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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