#802BA7#802BA7

#802BA7 is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.5% C 0.193 H 312.7°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#802BA7
RGBrgb(128, 43, 167)
HSLhsl(281, 59%, 41%)
HSVhsv(281, 74%, 65%)
CMYKcmyk(23.4%, 74.3%, 0%, 34.5%)
CIE-LABlab(36.19, 55.31, -50.12)
CIE-LCHlch(36.19, 74.64, 317.82°)
OKLaboklab(47.45% 0.1306 -0.1416)
OKLCHoklch(47.45% 0.193 312.7)
XYZxyz(16.7398, 9.1075, 37.4278)
Luminance0.0911 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802BA7 #52A72B
analogous
#422BA7 #802BA7 #A72B90
triadic
#802BA7 #A7802B #2BA780
tetradic
#802BA7 #A7422B #52A72B #2B90A7
square
#802BA7 #A7422B #52A72B #2B90A7
split-complementary
#802BA7 #90A72B #2BA742
monochromatic
#351246 #5B1E76 #802BA7 #A241CE #BA72DB

Accessibility & contrast

On white

7.44
#802BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#802BA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802BA7
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802BA7#FFFFFF#000000##FFFFFF
##802BA71.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AA
Deuteranopia (green-blind)
#1D57A4
Tritanopia (blue-blind)
#7C4767
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #802ba7;
/* rgb */ color: rgb(128, 43, 167);
/* oklch */ color: oklch(47.5% 0.193 312.7);
Tailwind
colors: {
  custom: {
    50: '#a96dc2',
    500: '#802ba7',
    950: '#000000',
  },
}
SCSS
$custom: #802ba7;
$custom-light: #a96dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#802ba7",
  "rgb": {
    "r": 128,
    "g": 43,
    "b": 167
  },
  "hsl": {
    "h": 281.129,
    "s": 59.048,
    "l": 41.176
  },
  "oklch": {
    "l": 0.47453,
    "c": 0.19265,
    "h": 312.7
  },
  "luminance": 0.09107
}

Semantic roles & 50–950 ramp

primary
#802BA7
secondary
#87C26C
accent
#E24677
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #802BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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