#802EB7#802EB7

#802EB7 is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 48.9% C 0.205 H 307.6°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#802EB7
RGBrgb(128, 46, 183)
HSLhsl(276, 60%, 45%)
HSVhsv(276, 75%, 72%)
CMYKcmyk(30.1%, 74.9%, 0%, 28.2%)
CIE-LABlab(37.77, 57.58, -57.08)
CIE-LCHlch(37.77, 81.08, 315.25°)
OKLaboklab(48.94% 0.125 -0.1621)
OKLCHoklch(48.94% 0.205 307.6)
XYZxyz(18.4245, 9.9623, 45.7429)
Luminance0.0996 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802EB7 #65B72E
analogous
#3B2EB7 #802EB7 #B72EAA
triadic
#802EB7 #B7802E #2EB780
tetradic
#802EB7 #B73B2E #65B72E #2EAAB7
square
#802EB7 #B73B2E #65B72E #2EAAB7
split-complementary
#802EB7 #AAB72E #2EB73B
monochromatic
#3C1555 #5E2286 #802EB7 #9E4FD3 #B980DF

Accessibility & contrast

On white

7.02
#802EB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#802EB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802EB7
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802EB7#FFFFFF#000000##FFFFFF
##802EB71.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BB
Deuteranopia (green-blind)
#005AB4
Tritanopia (blue-blind)
#774F71
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #802eb7;
/* rgb */ color: rgb(128, 46, 183);
/* oklch */ color: oklch(48.9% 0.205 307.6);
Tailwind
colors: {
  custom: {
    50: '#aa6fcd',
    500: '#802eb7',
    950: '#000000',
  },
}
SCSS
$custom: #802eb7;
$custom-light: #aa6fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#802eb7",
  "rgb": {
    "r": 128,
    "g": 46,
    "b": 183
  },
  "hsl": {
    "h": 275.912,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.48941,
    "c": 0.20469,
    "h": 307.6
  },
  "luminance": 0.09962
}

Semantic roles & 50–950 ramp

primary
#802EB7
secondary
#99C879
accent
#E34584
background
#FAF7FC
surface
#F5EDF9
border
#CFC8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #802EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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