#802CDF#802CDF

#802CDF is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 52.0% C 0.245 H 298.3°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#802CDF
RGBrgb(128, 44, 223)
HSLhsl(268, 74%, 52%)
HSVhsv(268, 80%, 87%)
CMYKcmyk(42.6%, 80.3%, 0%, 12.5%)
CIE-LABlab(40.76, 67.44, -75.43)
CIE-LCHlch(40.76, 101.18, 311.80°)
OKLaboklab(52.04% 0.1162 -0.216)
OKLCHoklch(52.04% 0.245 298.3)
XYZxyz(23.1186, 11.7179, 70.8415)
Luminance0.1172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802CDF #8BDF2C
analogous
#2C32DF #802CDF #D92CDF
triadic
#802CDF #DF802C #2CDF80
tetradic
#802CDF #DF2C32 #8BDF2C #2CDFD9
square
#802CDF #DF2C32 #8BDF2C #2CDFD9
split-complementary
#802CDF #DFD92C #32DF2C
monochromatic
#45137E #621BB3 #802CDF #A061E7 #C096EF

Accessibility & contrast

On white

6.28
#802CDF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#802CDF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #802CDF
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802CDF#FFFFFF#000000##FFFFFF
##802CDF1.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060E4
Deuteranopia (green-blind)
#005EDC
Tritanopia (blue-blind)
#685F87
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #802cdf;
/* rgb */ color: rgb(128, 44, 223);
/* oklch */ color: oklch(52.0% 0.245 298.3);
Tailwind
colors: {
  custom: {
    50: '#ad70ea',
    500: '#802cdf',
    950: '#000000',
  },
}
SCSS
$custom: #802cdf;
$custom-light: #ad70ea;
$custom-dark: #000000;
JSON
{
  "hex": "#802cdf",
  "rgb": {
    "r": 128,
    "g": 44,
    "b": 223
  },
  "hsl": {
    "h": 268.156,
    "s": 73.663,
    "l": 52.353
  },
  "oklch": {
    "l": 0.52035,
    "c": 0.2453,
    "h": 298.3
  },
  "luminance": 0.11718
}

Semantic roles & 50–950 ramp

primary
#802CDF
secondary
#B6DA8C
accent
#F0379A
background
#FBF7FE
surface
#F6EDFD
border
#D0C8D5
text
#110816
muted
#807B84

Preview Lab

Preview with #802CDF

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

Preview Lab → · Contrast checker → · Palette generator →

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