#802894#802894

#802894 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.8% C 0.178 H 319.5°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#802894
RGBrgb(128, 40, 148)
HSLhsl(289, 57%, 37%)
HSVhsv(289, 73%, 58%)
CMYKcmyk(13.5%, 73%, 0%, 42%)
CIE-LABlab(34.49, 52.61, -41.35)
CIE-LCHlch(34.49, 66.91, 321.83°)
OKLaboklab(45.84% 0.1358 -0.1159)
OKLCHoklch(45.84% 0.179 319.5)
XYZxyz(15.0055, 8.2456, 28.8124)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802894 #3C9428
analogous
#4A2894 #802894 #942872
triadic
#802894 #948028 #289480
tetradic
#802894 #944A28 #3C9428 #287294
square
#802894 #944A28 #3C9428 #287294
split-complementary
#802894 #729428 #28944A
monochromatic
#2D0E34 #561B64 #802894 #AA35C4 #BF62D5

Accessibility & contrast

On white

7.93
#802894 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#802894 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802894
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802894#FFFFFF#000000##FFFFFF
##8028941.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B97
Deuteranopia (green-blind)
#305491
Tritanopia (blue-blind)
#803D5B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #802894;
/* rgb */ color: rgb(128, 40, 148);
/* oklch */ color: oklch(45.8% 0.178 319.5);
Tailwind
colors: {
  custom: {
    50: '#a86bb4',
    500: '#802894',
    950: '#000000',
  },
}
SCSS
$custom: #802894;
$custom-light: #a86bb4;
$custom-dark: #000000;
JSON
{
  "hex": "#802894",
  "rgb": {
    "r": 128,
    "g": 40,
    "b": 148
  },
  "hsl": {
    "h": 288.889,
    "s": 57.447,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45835,
    "c": 0.1785,
    "h": 319.5
  },
  "luminance": 0.08245
}

Semantic roles & 50–950 ramp

primary
#802894
secondary
#6FBA5E
accent
#E14764
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #802894

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

Preview Lab → · Contrast checker → · Palette generator →

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