#802EB5#802EB5

#802EB5 is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.8% C 0.203 H 308.2°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#802EB5
RGBrgb(128, 46, 181)
HSLhsl(276, 59%, 45%)
HSVhsv(276, 75%, 71%)
CMYKcmyk(29.3%, 74.6%, 0%, 29%)
CIE-LABlab(37.63, 57.14, -56.13)
CIE-LCHlch(37.63, 80.10, 315.51°)
OKLaboklab(48.79% 0.1254 -0.1593)
OKLCHoklch(48.79% 0.203 308.2)
XYZxyz(18.2178, 9.8797, 44.6544)
Luminance0.0988 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802EB5 #63B52E
analogous
#3C2EB5 #802EB5 #B52EA7
triadic
#802EB5 #B5802E #2EB580
tetradic
#802EB5 #B53C2E #63B52E #2EA7B5
square
#802EB5 #B53C2E #63B52E #2EA7B5
split-complementary
#802EB5 #A7B52E #2EB53C
monochromatic
#3B1553 #5D2284 #802EB5 #9E4ED2 #B97FDE

Accessibility & contrast

On white

7.06
#802EB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#802EB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802EB5
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802EB5#FFFFFF#000000##FFFFFF
##802EB51.007.062.987.06
#FFFFFF7.061.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B9
Deuteranopia (green-blind)
#0059B2
Tritanopia (blue-blind)
#784E6F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #802eb5;
/* rgb */ color: rgb(128, 46, 181);
/* oklch */ color: oklch(48.8% 0.203 308.2);
Tailwind
colors: {
  custom: {
    50: '#aa6fcc',
    500: '#802eb5',
    950: '#000000',
  },
}
SCSS
$custom: #802eb5;
$custom-light: #aa6fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#802eb5",
  "rgb": {
    "r": 128,
    "g": 46,
    "b": 181
  },
  "hsl": {
    "h": 276.444,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48789,
    "c": 0.20274,
    "h": 308.2
  },
  "luminance": 0.09879
}

Semantic roles & 50–950 ramp

primary
#802EB5
secondary
#97C778
accent
#E34583
background
#FAF7FC
surface
#F5EDF9
border
#CFC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #802EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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