#802FCA#802FCA

#802FCA is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.5% C 0.222 H 302.7°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#802FCA
RGBrgb(128, 47, 202)
HSLhsl(271, 62%, 49%)
HSVhsv(271, 77%, 79%)
CMYKcmyk(36.6%, 76.7%, 0%, 20.8%)
CIE-LABlab(39.39, 61.48, -65.58)
CIE-LCHlch(39.39, 89.89, 313.15°)
OKLaboklab(50.54% 0.1199 -0.1871)
OKLCHoklch(50.54% 0.222 302.7)
XYZxyz(20.5767, 10.8865, 56.8829)
Luminance0.1089 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802FCA #79CA2F
analogous
#332FCA #802FCA #CA2FC7
triadic
#802FCA #CA802F #2FCA80
tetradic
#802FCA #CA332F #79CA2F #2FC7CA
square
#802FCA #CA332F #79CA2F #2FC7CA
split-complementary
#802FCA #C7CA2F #2FCA33
monochromatic
#411867 #612398 #802FCA #9E5DD9 #BC8FE5

Accessibility & contrast

On white

6.61
#802FCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#802FCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #802FCA
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802FCA#FFFFFF#000000##FFFFFF
##802FCA1.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCE
Deuteranopia (green-blind)
#005CC7
Tritanopia (blue-blind)
#70587C
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #802fca;
/* rgb */ color: rgb(128, 47, 202);
/* oklch */ color: oklch(50.5% 0.222 302.7);
Tailwind
colors: {
  custom: {
    50: '#ab70db',
    500: '#802fca',
    950: '#000000',
  },
}
SCSS
$custom: #802fca;
$custom-light: #ab70db;
$custom-dark: #000000;
JSON
{
  "hex": "#802fca",
  "rgb": {
    "r": 128,
    "g": 47,
    "b": 202
  },
  "hsl": {
    "h": 271.355,
    "s": 62.249,
    "l": 48.824
  },
  "oklch": {
    "l": 0.50536,
    "c": 0.22223,
    "h": 302.7
  },
  "luminance": 0.10886
}

Semantic roles & 50–950 ramp

primary
#802FCA
secondary
#A9CF86
accent
#E54290
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #802FCA

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

Preview Lab → · Contrast checker → · Palette generator →

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