#802895#802895

#802895 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.9% C 0.179 H 319.1°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#802895
RGBrgb(128, 40, 149)
HSLhsl(288, 58%, 37%)
HSVhsv(288, 73%, 58%)
CMYKcmyk(14.1%, 73.2%, 0%, 41.6%)
CIE-LABlab(34.55, 52.81, -41.86)
CIE-LCHlch(34.55, 67.38, 321.60°)
OKLaboklab(45.9% 0.1357 -0.1174)
OKLCHoklch(45.9% 0.179 319.1)
XYZxyz(15.0850, 8.2774, 29.2311)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802895 #3D9528
analogous
#492895 #802895 #952874
triadic
#802895 #958028 #289580
tetradic
#802895 #954928 #3D9528 #287495
square
#802895 #954928 #3D9528 #287495
split-complementary
#802895 #749528 #289549
monochromatic
#2D0E35 #571B65 #802895 #A935C5 #BF62D5

Accessibility & contrast

On white

7.91
#802895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #802895
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802895#FFFFFF#000000##FFFFFF
##8028951.007.912.667.91
#FFFFFF7.911.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B98
Deuteranopia (green-blind)
#305492
Tritanopia (blue-blind)
#803D5C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #802895;
/* rgb */ color: rgb(128, 40, 149);
/* oklch */ color: oklch(45.9% 0.179 319.1);
Tailwind
colors: {
  custom: {
    50: '#a86bb5',
    500: '#802895',
    950: '#000000',
  },
}
SCSS
$custom: #802895;
$custom-light: #a86bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#802895",
  "rgb": {
    "r": 128,
    "g": 40,
    "b": 149
  },
  "hsl": {
    "h": 288.44,
    "s": 57.672,
    "l": 37.059
  },
  "oklch": {
    "l": 0.45902,
    "c": 0.17941,
    "h": 319.1
  },
  "luminance": 0.08277
}

Semantic roles & 50–950 ramp

primary
#802895
secondary
#70BB5E
accent
#E14765
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #802895

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

Preview Lab → · Contrast checker → · Palette generator →

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