#802BB5#802BB5

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

Color values

HEX#802BB5
RGBrgb(128, 43, 181)
HSLhsl(277, 62%, 44%)
HSVhsv(277, 76%, 71%)
CMYKcmyk(29.3%, 76.2%, 0%, 29%)
CIE-LABlab(37.21, 58.32, -56.80)
CIE-LCHlch(37.21, 81.41, 315.75°)
OKLaboklab(48.5% 0.1281 -0.1613)
OKLCHoklch(48.5% 0.206 308.5)
XYZxyz(18.1047, 9.6534, 44.6166)
Luminance0.0965 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802BB5 #60B52B
analogous
#3B2BB5 #802BB5 #B52BA5
triadic
#802BB5 #B5802B #2BB580
tetradic
#802BB5 #B53B2B #60B52B #2BA5B5
square
#802BB5 #B53B2B #60B52B #2BA5B5
split-complementary
#802BB5 #A5B52B #2BB53B
monochromatic
#3A1452 #5D1F84 #802BB5 #9F49D4 #B97BE0

Accessibility & contrast

On white

7.17
#802BB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#802BB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802BB5
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802BB5#FFFFFF#000000##FFFFFF
##802BB51.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B9
Deuteranopia (green-blind)
#0058B2
Tritanopia (blue-blind)
#784D6F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #802bb5;
/* rgb */ color: rgb(128, 43, 181);
/* oklch */ color: oklch(48.5% 0.206 308.5);
Tailwind
colors: {
  custom: {
    50: '#aa6ecc',
    500: '#802bb5',
    950: '#000000',
  },
}
SCSS
$custom: #802bb5;
$custom-light: #aa6ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#802bb5",
  "rgb": {
    "r": 128,
    "g": 43,
    "b": 181
  },
  "hsl": {
    "h": 276.957,
    "s": 61.607,
    "l": 43.922
  },
  "oklch": {
    "l": 0.48498,
    "c": 0.20597,
    "h": 308.5
  },
  "luminance": 0.09653
}

Semantic roles & 50–950 ramp

primary
#802BB5
secondary
#94C874
accent
#E54381
background
#FAF6FC
surface
#F5ECF9
border
#CFC7D2
text
#110813
muted
#807B82

Preview Lab

Preview with #802BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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