#802897#802897

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

Color values

HEX#802897
RGBrgb(128, 40, 151)
HSLhsl(288, 58%, 37%)
HSVhsv(288, 74%, 59%)
CMYKcmyk(15.2%, 73.5%, 0%, 40.8%)
CIE-LABlab(34.68, 53.20, -42.87)
CIE-LCHlch(34.68, 68.32, 321.14°)
OKLaboklab(46.04% 0.1355 -0.1204)
OKLCHoklch(46.04% 0.181 318.4)
XYZxyz(15.2460, 8.3418, 30.0792)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802897 #3F9728
analogous
#492897 #802897 #972876
triadic
#802897 #978028 #289780
tetradic
#802897 #974928 #3F9728 #287697
square
#802897 #974928 #3F9728 #287697
split-complementary
#802897 #769728 #289749
monochromatic
#2E0E36 #571B67 #802897 #A935C7 #BE64D6

Accessibility & contrast

On white

7.87
#802897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#802897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802897
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802897#FFFFFF#000000##FFFFFF
##8028971.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9A
Deuteranopia (green-blind)
#2E5494
Tritanopia (blue-blind)
#803E5D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #802897;
/* rgb */ color: rgb(128, 40, 151);
/* oklch */ color: oklch(46.0% 0.181 318.4);
Tailwind
colors: {
  custom: {
    50: '#a86bb6',
    500: '#802897',
    950: '#000000',
  },
}
SCSS
$custom: #802897;
$custom-light: #a86bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#802897",
  "rgb": {
    "r": 128,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 287.568,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.46037,
    "c": 0.18124,
    "h": 318.4
  },
  "luminance": 0.08341
}

Semantic roles & 50–950 ramp

primary
#802897
secondary
#72BC5F
accent
#E14667
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #802897

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

Preview Lab → · Contrast checker → · Palette generator →

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