#802EC2#802EC2

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

Color values

HEX#802EC2
RGBrgb(128, 46, 194)
HSLhsl(273, 62%, 47%)
HSVhsv(273, 76%, 76%)
CMYKcmyk(34%, 76.3%, 0%, 23.9%)
CIE-LABlab(38.62, 60.05, -62.17)
CIE-LCHlch(38.62, 86.44, 314.01°)
OKLaboklab(49.8% 0.1227 -0.1771)
OKLCHoklch(49.8% 0.215 304.7)
XYZxyz(19.6145, 10.4383, 52.0099)
Luminance0.1044 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802EC2 #70C22E
analogous
#362EC2 #802EC2 #C22EBA
triadic
#802EC2 #C2802E #2EC280
tetradic
#802EC2 #C2362E #70C22E #2EBAC2
square
#802EC2 #C2362E #70C22E #2EBAC2
split-complementary
#802EC2 #BAC22E #2EC236
monochromatic
#3F175F #5F2291 #802EC2 #9E56D7 #BA88E3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##802EC2#FFFFFF#000000##FFFFFF
##802EC21.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)
#0059C6
Deuteranopia (green-blind)
#005BBF
Tritanopia (blue-blind)
#735477
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #802ec2;
/* rgb */ color: rgb(128, 46, 194);
/* oklch */ color: oklch(49.8% 0.215 304.7);
Tailwind
colors: {
  custom: {
    50: '#ab70d5',
    500: '#802ec2',
    950: '#000000',
  },
}
SCSS
$custom: #802ec2;
$custom-light: #ab70d5;
$custom-dark: #000000;
JSON
{
  "hex": "#802ec2",
  "rgb": {
    "r": 128,
    "g": 46,
    "b": 194
  },
  "hsl": {
    "h": 273.243,
    "s": 61.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.49798,
    "c": 0.21542,
    "h": 304.7
  },
  "luminance": 0.10438
}

Semantic roles & 50–950 ramp

primary
#802EC2
secondary
#A2CC7F
accent
#E5438B
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #802EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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