#802DB4#802DB4

#802DB4 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.6% C 0.203 H 308.6°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#802DB4
RGBrgb(128, 45, 180)
HSLhsl(277, 60%, 44%)
HSVhsv(277, 75%, 71%)
CMYKcmyk(28.9%, 75%, 0%, 29.4%)
CIE-LABlab(37.41, 57.32, -55.89)
CIE-LCHlch(37.41, 80.06, 315.72°)
OKLaboklab(48.61% 0.1265 -0.1586)
OKLCHoklch(48.61% 0.203 308.6)
XYZxyz(18.0770, 9.7616, 44.1030)
Luminance0.0976 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802DB4 #61B42D
analogous
#3D2DB4 #802DB4 #B42DA5
triadic
#802DB4 #B4802D #2DB480
tetradic
#802DB4 #B43D2D #61B42D #2DA5B4
square
#802DB4 #B43D2D #61B42D #2DA5B4
split-complementary
#802DB4 #A5B42D #2DB43D
monochromatic
#3A1552 #5D2183 #802DB4 #9F4CD2 #B97DDE

Accessibility & contrast

On white

7.11
#802DB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#802DB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802DB4
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802DB4#FFFFFF#000000##FFFFFF
##802DB41.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B8
Deuteranopia (green-blind)
#0059B1
Tritanopia (blue-blind)
#784D6F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #802db4;
/* rgb */ color: rgb(128, 45, 180);
/* oklch */ color: oklch(48.6% 0.203 308.6);
Tailwind
colors: {
  custom: {
    50: '#aa6ecb',
    500: '#802db4',
    950: '#000000',
  },
}
SCSS
$custom: #802db4;
$custom-light: #aa6ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#802db4",
  "rgb": {
    "r": 128,
    "g": 45,
    "b": 180
  },
  "hsl": {
    "h": 276.889,
    "s": 60,
    "l": 44.118
  },
  "oklch": {
    "l": 0.48614,
    "c": 0.20287,
    "h": 308.6
  },
  "luminance": 0.09761
}

Semantic roles & 50–950 ramp

primary
#802DB4
secondary
#95C776
accent
#E34582
background
#FAF7FC
surface
#F5EDF9
border
#CFC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #802DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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