#802BBA#802BBA

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

Color values

HEX#802BBA
RGBrgb(128, 43, 186)
HSLhsl(276, 62%, 45%)
HSVhsv(276, 77%, 73%)
CMYKcmyk(31.2%, 76.9%, 0%, 27.1%)
CIE-LABlab(37.59, 59.42, -59.14)
CIE-LCHlch(37.59, 83.83, 315.13°)
OKLaboklab(48.89% 0.127 -0.1681)
OKLCHoklch(48.89% 0.211 307.1)
XYZxyz(18.6270, 9.8623, 47.3672)
Luminance0.0986 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802BBA #65BA2B
analogous
#382BBA #802BBA #BA2BAD
triadic
#802BBA #BA802B #2BBA80
tetradic
#802BBA #BA382B #65BA2B #2BADBA
square
#802BBA #BA382B #65BA2B #2BADBA
split-complementary
#802BBA #ADBA2B #2BBA38
monochromatic
#3C1457 #5E2088 #802BBA #9E4CD6 #B97EE1

Accessibility & contrast

On white

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

On black

2.97
#802BBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##802BBA#FFFFFF#000000##FFFFFF
##802BBA1.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BE
Deuteranopia (green-blind)
#0059B7
Tritanopia (blue-blind)
#764F72
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #802bba;
/* rgb */ color: rgb(128, 43, 186);
/* oklch */ color: oklch(48.9% 0.211 307.1);
Tailwind
colors: {
  custom: {
    50: '#aa6ed0',
    500: '#802bba',
    950: '#000000',
  },
}
SCSS
$custom: #802bba;
$custom-light: #aa6ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#802bba",
  "rgb": {
    "r": 128,
    "g": 43,
    "b": 186
  },
  "hsl": {
    "h": 275.664,
    "s": 62.445,
    "l": 44.902
  },
  "oklch": {
    "l": 0.48885,
    "c": 0.21075,
    "h": 307.1
  },
  "luminance": 0.09862
}

Semantic roles & 50–950 ramp

primary
#802BBA
secondary
#99CA77
accent
#E64284
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#110814
muted
#807B82

Preview Lab

Preview with #802BBA

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

Preview Lab → · Contrast checker → · Palette generator →

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