#802FA5#802FA5

#802FA5 is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.7% C 0.186 H 313.0°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#802FA5
RGBrgb(128, 47, 165)
HSLhsl(281, 56%, 42%)
HSVhsv(281, 72%, 65%)
CMYKcmyk(22.4%, 71.5%, 0%, 35.3%)
CIE-LABlab(36.63, 53.24, -48.21)
CIE-LCHlch(36.63, 71.83, 317.84°)
OKLaboklab(47.72% 0.1268 -0.1361)
OKLCHoklch(47.72% 0.186 313)
XYZxyz(16.7089, 9.3393, 36.5125)
Luminance0.0934 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802FA5 #54A52F
analogous
#452FA5 #802FA5 #A52F8F
triadic
#802FA5 #A5802F #2FA580
tetradic
#802FA5 #A5452F #54A52F #2F8FA5
square
#802FA5 #A5452F #54A52F #2F8FA5
split-complementary
#802FA5 #8FA52F #2FA545
monochromatic
#361446 #5B2175 #802FA5 #A147CB #B976D8

Accessibility & contrast

On white

7.32
#802FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#802FA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802FA5
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802FA5#FFFFFF#000000##FFFFFF
##802FA51.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A8
Deuteranopia (green-blind)
#2458A2
Tritanopia (blue-blind)
#7C4867
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #802fa5;
/* rgb */ color: rgb(128, 47, 165);
/* oklch */ color: oklch(47.7% 0.186 313.0);
Tailwind
colors: {
  custom: {
    50: '#a96fc0',
    500: '#802fa5',
    950: '#000000',
  },
}
SCSS
$custom: #802fa5;
$custom-light: #a96fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#802fa5",
  "rgb": {
    "r": 128,
    "g": 47,
    "b": 165
  },
  "hsl": {
    "h": 281.186,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.47721,
    "c": 0.18599,
    "h": 313
  },
  "luminance": 0.09339
}

Semantic roles & 50–950 ramp

primary
#802FA5
secondary
#89C070
accent
#DF4978
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #802FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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