#802DB2#802DB2

#802DB2 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.5% C 0.201 H 309.1°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#802DB2
RGBrgb(128, 45, 178)
HSLhsl(277, 60%, 44%)
HSVhsv(277, 75%, 70%)
CMYKcmyk(28.1%, 74.7%, 0%, 30.2%)
CIE-LABlab(37.26, 56.88, -54.94)
CIE-LCHlch(37.26, 79.08, 315.99°)
OKLaboklab(48.46% 0.1269 -0.1558)
OKLCHoklch(48.46% 0.201 309.1)
XYZxyz(17.8747, 9.6807, 43.0378)
Luminance0.0968 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802DB2 #5FB22D
analogous
#3E2DB2 #802DB2 #B22DA1
triadic
#802DB2 #B2802D #2DB280
tetradic
#802DB2 #B23E2D #5FB22D #2DA1B2
square
#802DB2 #B23E2D #5FB22D #2DA1B2
split-complementary
#802DB2 #A1B22D #2DB23E
monochromatic
#3A1450 #5D2181 #802DB2 #9F4BD1 #B97CDE

Accessibility & contrast

On white

7.15
#802DB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#802DB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802DB2
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802DB2#FFFFFF#000000##FFFFFF
##802DB21.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0159AF
Tritanopia (blue-blind)
#784C6E
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #802db2;
/* rgb */ color: rgb(128, 45, 178);
/* oklch */ color: oklch(48.5% 0.201 309.1);
Tailwind
colors: {
  custom: {
    50: '#aa6eca',
    500: '#802db2',
    950: '#000000',
  },
}
SCSS
$custom: #802db2;
$custom-light: #aa6eca;
$custom-dark: #000000;
JSON
{
  "hex": "#802db2",
  "rgb": {
    "r": 128,
    "g": 45,
    "b": 178
  },
  "hsl": {
    "h": 277.444,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.48463,
    "c": 0.20094,
    "h": 309.1
  },
  "luminance": 0.0968
}

Semantic roles & 50–950 ramp

primary
#802DB2
secondary
#93C675
accent
#E34580
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #802DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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