#802ED7#802ED7

#802ED7 is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 51.5% C 0.236 H 299.8°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#802ED7
RGBrgb(128, 46, 215)
HSLhsl(269, 68%, 51%)
HSVhsv(269, 79%, 84%)
CMYKcmyk(40.5%, 78.6%, 0%, 15.7%)
CIE-LABlab(40.33, 64.86, -71.56)
CIE-LCHlch(40.33, 96.58, 312.19°)
OKLaboklab(51.52% 0.1172 -0.2047)
OKLCHoklch(51.52% 0.236 299.8)
XYZxyz(22.1417, 11.4492, 65.3202)
Luminance0.1145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802ED7 #85D72E
analogous
#2E30D7 #802ED7 #D42ED7
triadic
#802ED7 #D7802E #2ED780
tetradic
#802ED7 #D72E30 #85D72E #2ED7D4
square
#802ED7 #D72E30 #85D72E #2ED7D4
split-complementary
#802ED7 #D7D42E #30D72E
monochromatic
#441674 #6220A8 #802ED7 #9F61E1 #BE95EB

Accessibility & contrast

On white

6.38
#802ED7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#802ED7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #802ED7
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802ED7#FFFFFF#000000##FFFFFF
##802ED71.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FDC
Deuteranopia (green-blind)
#005ED4
Tritanopia (blue-blind)
#6B5D83
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #802ed7;
/* rgb */ color: rgb(128, 46, 215);
/* oklch */ color: oklch(51.5% 0.236 299.8);
Tailwind
colors: {
  custom: {
    50: '#ad71e5',
    500: '#802ed7',
    950: '#000000',
  },
}
SCSS
$custom: #802ed7;
$custom-light: #ad71e5;
$custom-dark: #000000;
JSON
{
  "hex": "#802ed7",
  "rgb": {
    "r": 128,
    "g": 46,
    "b": 215
  },
  "hsl": {
    "h": 269.112,
    "s": 67.871,
    "l": 51.176
  },
  "oklch": {
    "l": 0.51522,
    "c": 0.23586,
    "h": 299.8
  },
  "luminance": 0.11449
}

Semantic roles & 50–950 ramp

primary
#802ED7
secondary
#B2D68B
accent
#EB3D96
background
#FBF7FE
surface
#F6EDFC
border
#D0C8D5
text
#110816
muted
#807B84

Preview Lab

Preview with #802ED7

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

Preview Lab → · Contrast checker → · Palette generator →

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