#802DAF#802DAF

#802DAF is a mid, vivid violet. Relative luminance 0.096; OKLCH L 48.2% C 0.198 H 310.0°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#802DAF
RGBrgb(128, 45, 175)
HSLhsl(278, 59%, 43%)
HSVhsv(278, 74%, 69%)
CMYKcmyk(26.9%, 74.3%, 0%, 31.4%)
CIE-LABlab(37.04, 56.23, -53.52)
CIE-LCHlch(37.04, 77.62, 316.41°)
OKLaboklab(48.24% 0.1274 -0.1516)
OKLCHoklch(48.24% 0.198 310)
XYZxyz(17.5768, 9.5615, 41.4688)
Luminance0.0956 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802DAF #5CAF2D
analogous
#3F2DAF #802DAF #AF2D9D
triadic
#802DAF #AF802D #2DAF80
tetradic
#802DAF #AF3F2D #5CAF2D #2D9DAF
square
#802DAF #AF3F2D #5CAF2D #2D9DAF
split-complementary
#802DAF #9DAF2D #2DAF3F
monochromatic
#39144E #5C207E #802DAF #9F49D0 #B97ADD

Accessibility & contrast

On white

7.21
#802DAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#802DAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802DAF
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802DAF#FFFFFF#000000##FFFFFF
##802DAF1.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B3
Deuteranopia (green-blind)
#0D58AC
Tritanopia (blue-blind)
#794B6C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #802daf;
/* rgb */ color: rgb(128, 45, 175);
/* oklch */ color: oklch(48.2% 0.198 310.0);
Tailwind
colors: {
  custom: {
    50: '#a96ec8',
    500: '#802daf',
    950: '#000000',
  },
}
SCSS
$custom: #802daf;
$custom-light: #a96ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#802daf",
  "rgb": {
    "r": 128,
    "g": 45,
    "b": 175
  },
  "hsl": {
    "h": 278.308,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.48239,
    "c": 0.19804,
    "h": 310
  },
  "luminance": 0.09561
}

Semantic roles & 50–950 ramp

primary
#802DAF
secondary
#91C573
accent
#E2467E
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #802DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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