#802FA2#802FA2

#802FA2 is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.5% C 0.183 H 314.0°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#802FA2
RGBrgb(128, 47, 162)
HSLhsl(282, 55%, 41%)
HSVhsv(282, 71%, 64%)
CMYKcmyk(21%, 71%, 0%, 36.5%)
CIE-LABlab(36.43, 52.61, -46.73)
CIE-LCHlch(36.43, 70.37, 318.38°)
OKLaboklab(47.51% 0.1271 -0.1317)
OKLCHoklch(47.51% 0.183 314)
XYZxyz(16.4391, 9.2314, 35.0913)
Luminance0.0923 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802FA2 #51A22F
analogous
#462FA2 #802FA2 #A22F8A
triadic
#802FA2 #A2802F #2FA280
tetradic
#802FA2 #A2462F #51A22F #2F8AA2
square
#802FA2 #A2462F #51A22F #2F8AA2
split-complementary
#802FA2 #8AA22F #2FA246
monochromatic
#351343 #5B2173 #802FA2 #A245C9 #BA75D7

Accessibility & contrast

On white

7.38
#802FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#802FA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802FA2
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802FA2#FFFFFF#000000##FFFFFF
##802FA21.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A5
Deuteranopia (green-blind)
#28589F
Tritanopia (blue-blind)
#7D4765
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #802fa2;
/* rgb */ color: rgb(128, 47, 162);
/* oklch */ color: oklch(47.5% 0.183 314.0);
Tailwind
colors: {
  custom: {
    50: '#a96fbe',
    500: '#802fa2',
    950: '#000000',
  },
}
SCSS
$custom: #802fa2;
$custom-light: #a96fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#802fa2",
  "rgb": {
    "r": 128,
    "g": 47,
    "b": 162
  },
  "hsl": {
    "h": 282.261,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.47512,
    "c": 0.18306,
    "h": 314
  },
  "luminance": 0.09231
}

Semantic roles & 50–950 ramp

primary
#802FA2
secondary
#86BF6E
accent
#DE4975
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #802FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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