#802BAC#802BAC

#802BAC is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.8% C 0.197 H 311.1°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#802BAC
RGBrgb(128, 43, 172)
HSLhsl(280, 60%, 42%)
HSVhsv(280, 75%, 67%)
CMYKcmyk(25.6%, 75%, 0%, 32.5%)
CIE-LABlab(36.55, 56.37, -52.53)
CIE-LCHlch(36.55, 77.06, 317.02°)
OKLaboklab(47.82% 0.1298 -0.1487)
OKLCHoklch(47.82% 0.197 311.1)
XYZxyz(17.2109, 9.2959, 39.9094)
Luminance0.0930 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802BAC #57AC2B
analogous
#402BAC #802BAC #AC2B98
triadic
#802BAC #AC802B #2BAC80
tetradic
#802BAC #AC402B #57AC2B #2B98AC
square
#802BAC #AC402B #57AC2B #2B98AC
split-complementary
#802BAC #98AC2B #2BAC40
monochromatic
#37134A #5C1F7B #802BAC #A044D0 #B975DC

Accessibility & contrast

On white

7.34
#802BAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#802BAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802BAC
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802BAC#FFFFFF#000000##FFFFFF
##802BAC1.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B0
Deuteranopia (green-blind)
#1257A9
Tritanopia (blue-blind)
#7A496A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #802bac;
/* rgb */ color: rgb(128, 43, 172);
/* oklch */ color: oklch(47.8% 0.197 311.1);
Tailwind
colors: {
  custom: {
    50: '#a96dc5',
    500: '#802bac',
    950: '#000000',
  },
}
SCSS
$custom: #802bac;
$custom-light: #a96dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#802bac",
  "rgb": {
    "r": 128,
    "g": 43,
    "b": 172
  },
  "hsl": {
    "h": 279.535,
    "s": 60,
    "l": 42.157
  },
  "oklch": {
    "l": 0.4782,
    "c": 0.1974,
    "h": 311.1
  },
  "luminance": 0.09296
}

Semantic roles & 50–950 ramp

primary
#802BAC
secondary
#8CC46F
accent
#E3457B
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #802BAC

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

Preview Lab → · Contrast checker → · Palette generator →

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