#802DD2#802DD2

#802DD2 is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 51.0% C 0.232 H 301.0°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#802DD2
RGBrgb(128, 45, 210)
HSLhsl(270, 65%, 50%)
HSVhsv(270, 79%, 82%)
CMYKcmyk(39%, 78.6%, 0%, 17.6%)
CIE-LABlab(39.78, 64.08, -69.58)
CIE-LCHlch(39.78, 94.59, 312.65°)
OKLaboklab(51.01% 0.1194 -0.1988)
OKLCHoklch(51.01% 0.232 301)
XYZxyz(21.4705, 11.1189, 61.9753)
Luminance0.1112 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802DD2 #7FD22D
analogous
#2E2DD2 #802DD2 #D22DD1
triadic
#802DD2 #D2802D #2DD280
tetradic
#802DD2 #D22E2D #7FD22D #2DD1D2
square
#802DD2 #D22E2D #7FD22D #2DD1D2
split-complementary
#802DD2 #D1D22D #2DD22E
monochromatic
#43176D #6122A0 #802DD2 #9E5FDD #BD92E8

Accessibility & contrast

On white

6.51
#802DD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#802DD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #802DD2
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802DD2#FFFFFF#000000##FFFFFF
##802DD21.006.513.226.51
#FFFFFF6.511.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD6
Deuteranopia (green-blind)
#005DCF
Tritanopia (blue-blind)
#6D5A80
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #802dd2;
/* rgb */ color: rgb(128, 45, 210);
/* oklch */ color: oklch(51.0% 0.232 301.0);
Tailwind
colors: {
  custom: {
    50: '#ac70e1',
    500: '#802dd2',
    950: '#000000',
  },
}
SCSS
$custom: #802dd2;
$custom-light: #ac70e1;
$custom-dark: #000000;
JSON
{
  "hex": "#802dd2",
  "rgb": {
    "r": 128,
    "g": 45,
    "b": 210
  },
  "hsl": {
    "h": 270.182,
    "s": 64.706,
    "l": 50
  },
  "oklch": {
    "l": 0.51012,
    "c": 0.23191,
    "h": 301
  },
  "luminance": 0.11119
}

Semantic roles & 50–950 ramp

primary
#802DD2
secondary
#ADD288
accent
#E84093
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #802DD2

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

Preview Lab → · Contrast checker → · Palette generator →

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