#802CBA#802CBA

#802CBA is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 49.0% C 0.210 H 307.0°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#802CBA
RGBrgb(128, 44, 186)
HSLhsl(275, 62%, 45%)
HSVhsv(275, 76%, 73%)
CMYKcmyk(31.2%, 76.3%, 0%, 27.1%)
CIE-LABlab(37.73, 59.04, -58.92)
CIE-LCHlch(37.73, 83.41, 315.05°)
OKLaboklab(48.98% 0.1262 -0.1675)
OKLCHoklch(48.98% 0.21 307)
XYZxyz(18.6638, 9.9360, 47.3795)
Luminance0.0994 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802CBA #66BA2C
analogous
#392CBA #802CBA #BA2CAD
triadic
#802CBA #BA802C #2CBA80
tetradic
#802CBA #BA392C #66BA2C #2CADBA
square
#802CBA #BA392C #66BA2C #2CADBA
split-complementary
#802CBA #ADBA2C #2CBA39
monochromatic
#3C1557 #5E2089 #802CBA #9E4ED5 #B980E1

Accessibility & contrast

On white

7.03
#802CBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #802CBA
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802CBA#FFFFFF#000000##FFFFFF
##802CBA1.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #802cba;
/* rgb */ color: rgb(128, 44, 186);
/* oklch */ color: oklch(49.0% 0.210 307.0);
Tailwind
colors: {
  custom: {
    50: '#aa6ed0',
    500: '#802cba',
    950: '#000000',
  },
}
SCSS
$custom: #802cba;
$custom-light: #aa6ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#802cba",
  "rgb": {
    "r": 128,
    "g": 44,
    "b": 186
  },
  "hsl": {
    "h": 275.493,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.48979,
    "c": 0.20972,
    "h": 307
  },
  "luminance": 0.09936
}

Semantic roles & 50–950 ramp

primary
#802CBA
secondary
#99CA78
accent
#E54385
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #802CBA

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

Preview Lab → · Contrast checker → · Palette generator →

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