#802CAF#802CAF

#802CAF is a mid, vivid violet. Relative luminance 0.095; OKLCH L 48.1% C 0.199 H 310.1°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#802CAF
RGBrgb(128, 44, 175)
HSLhsl(278, 60%, 43%)
HSVhsv(278, 75%, 69%)
CMYKcmyk(26.9%, 74.9%, 0%, 31.4%)
CIE-LABlab(36.90, 56.63, -53.74)
CIE-LCHlch(36.90, 78.07, 316.50°)
OKLaboklab(48.14% 0.1283 -0.1523)
OKLCHoklch(48.14% 0.199 310.1)
XYZxyz(17.5391, 9.4861, 41.4562)
Luminance0.0949 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802CAF #5BAF2C
analogous
#3E2CAF #802CAF #AF2C9C
triadic
#802CAF #AF802C #2CAF80
tetradic
#802CAF #AF3E2C #5BAF2C #2C9CAF
square
#802CAF #AF3E2C #5BAF2C #2C9CAF
split-complementary
#802CAF #9CAF2C #2CAF3E
monochromatic
#38134D #5C207E #802CAF #A047D1 #B978DD

Accessibility & contrast

On white

7.25
#802CAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#802CAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802CAF
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802CAF#FFFFFF#000000##FFFFFF
##802CAF1.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #802caf;
/* rgb */ color: rgb(128, 44, 175);
/* oklch */ color: oklch(48.1% 0.199 310.1);
Tailwind
colors: {
  custom: {
    50: '#a96ec8',
    500: '#802caf',
    950: '#000000',
  },
}
SCSS
$custom: #802caf;
$custom-light: #a96ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#802caf",
  "rgb": {
    "r": 128,
    "g": 44,
    "b": 175
  },
  "hsl": {
    "h": 278.473,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.4814,
    "c": 0.19916,
    "h": 310.1
  },
  "luminance": 0.09486
}

Semantic roles & 50–950 ramp

primary
#802CAF
secondary
#90C572
accent
#E3457E
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #802CAF

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

Preview Lab → · Contrast checker → · Palette generator →

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