#802896#802896

#802896 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.0% C 0.180 H 318.8°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#802896
RGBrgb(128, 40, 150)
HSLhsl(288, 58%, 37%)
HSVhsv(288, 73%, 59%)
CMYKcmyk(14.7%, 73.3%, 0%, 41.2%)
CIE-LABlab(34.62, 53.00, -42.36)
CIE-LCHlch(34.62, 67.85, 321.37°)
OKLaboklab(45.97% 0.1356 -0.1189)
OKLCHoklch(45.97% 0.18 318.8)
XYZxyz(15.1652, 8.3095, 29.6533)
Luminance0.0831 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802896 #3E9628
analogous
#492896 #802896 #962875
triadic
#802896 #968028 #289680
tetradic
#802896 #964928 #3E9628 #287596
square
#802896 #964928 #3E9628 #287596
split-complementary
#802896 #759628 #289649
monochromatic
#2E0E35 #571B66 #802896 #A935C6 #BF63D5

Accessibility & contrast

On white

7.89
#802896 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#802896 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802896
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802896#FFFFFF#000000##FFFFFF
##8028961.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C99
Deuteranopia (green-blind)
#2F5493
Tritanopia (blue-blind)
#803E5D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #802896;
/* rgb */ color: rgb(128, 40, 150);
/* oklch */ color: oklch(46.0% 0.180 318.8);
Tailwind
colors: {
  custom: {
    50: '#a86bb5',
    500: '#802896',
    950: '#000000',
  },
}
SCSS
$custom: #802896;
$custom-light: #a86bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#802896",
  "rgb": {
    "r": 128,
    "g": 40,
    "b": 150
  },
  "hsl": {
    "h": 288,
    "s": 57.895,
    "l": 37.255
  },
  "oklch": {
    "l": 0.45969,
    "c": 0.18032,
    "h": 318.8
  },
  "luminance": 0.08309
}

Semantic roles & 50–950 ramp

primary
#802896
secondary
#71BB5F
accent
#E14766
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #802896

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

Preview Lab → · Contrast checker → · Palette generator →

#802896 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva