#802BC7#802BC7

#802BC7 is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.9% C 0.223 H 303.7°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#802BC7
RGBrgb(128, 43, 199)
HSLhsl(273, 64%, 47%)
HSVhsv(273, 78%, 78%)
CMYKcmyk(35.7%, 78.4%, 0%, 22%)
CIE-LABlab(38.62, 62.32, -65.09)
CIE-LCHlch(38.62, 90.11, 313.75°)
OKLaboklab(49.93% 0.1239 -0.1856)
OKLCHoklch(49.93% 0.223 303.7)
XYZxyz(20.0724, 10.4405, 54.9795)
Luminance0.1044 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802BC7 #72C72B
analogous
#322BC7 #802BC7 #C72BC0
triadic
#802BC7 #C7802B #2BC780
tetradic
#802BC7 #C7322B #72C72B #2BC0C7
square
#802BC7 #C7322B #72C72B #2BC0C7
split-complementary
#802BC7 #C0C72B #2BC732
monochromatic
#3F1562 #602095 #802BC7 #9E55DA #BA87E5

Accessibility & contrast

On white

6.80
#802BC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#802BC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #802BC7
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802BC7#FFFFFF#000000##FFFFFF
##802BC71.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CB
Deuteranopia (green-blind)
#005BC4
Tritanopia (blue-blind)
#725579
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #802bc7;
/* rgb */ color: rgb(128, 43, 199);
/* oklch */ color: oklch(49.9% 0.223 303.7);
Tailwind
colors: {
  custom: {
    50: '#ab6ed9',
    500: '#802bc7',
    950: '#000000',
  },
}
SCSS
$custom: #802bc7;
$custom-light: #ab6ed9;
$custom-dark: #000000;
JSON
{
  "hex": "#802bc7",
  "rgb": {
    "r": 128,
    "g": 43,
    "b": 199
  },
  "hsl": {
    "h": 272.692,
    "s": 64.463,
    "l": 47.451
  },
  "oklch": {
    "l": 0.49925,
    "c": 0.22318,
    "h": 303.7
  },
  "luminance": 0.1044
}

Semantic roles & 50–950 ramp

primary
#802BC7
secondary
#A3CF7F
accent
#E7408C
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #802BC7

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

Preview Lab → · Contrast checker → · Palette generator →

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