#802FC4#802FC4

#802FC4 is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 50.1% C 0.216 H 304.1°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#802FC4
RGBrgb(128, 47, 196)
HSLhsl(273, 61%, 48%)
HSVhsv(273, 76%, 77%)
CMYKcmyk(34.7%, 76%, 0%, 23.1%)
CIE-LABlab(38.91, 60.11, -62.86)
CIE-LCHlch(38.91, 86.98, 313.72°)
OKLaboklab(50.05% 0.1213 -0.1791)
OKLCHoklch(50.05% 0.216 304.1)
XYZxyz(19.8801, 10.6078, 53.2140)
Luminance0.1061 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802FC4 #73C42F
analogous
#352FC4 #802FC4 #C42FBE
triadic
#802FC4 #C4802F #2FC480
tetradic
#802FC4 #C4352F #73C42F #2FBEC4
square
#802FC4 #C4352F #73C42F #2FBEC4
split-complementary
#802FC4 #BEC42F #2FC435
monochromatic
#401761 #602393 #802FC4 #9E59D7 #BB8AE3

Accessibility & contrast

On white

6.73
#802FC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#802FC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #802FC4
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802FC4#FFFFFF#000000##FFFFFF
##802FC41.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC8
Deuteranopia (green-blind)
#005BC1
Tritanopia (blue-blind)
#735578
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #802fc4;
/* rgb */ color: rgb(128, 47, 196);
/* oklch */ color: oklch(50.1% 0.216 304.1);
Tailwind
colors: {
  custom: {
    50: '#ab70d7',
    500: '#802fc4',
    950: '#000000',
  },
}
SCSS
$custom: #802fc4;
$custom-light: #ab70d7;
$custom-dark: #000000;
JSON
{
  "hex": "#802fc4",
  "rgb": {
    "r": 128,
    "g": 47,
    "b": 196
  },
  "hsl": {
    "h": 272.617,
    "s": 61.317,
    "l": 47.647
  },
  "oklch": {
    "l": 0.50054,
    "c": 0.21634,
    "h": 304.1
  },
  "luminance": 0.10608
}

Semantic roles & 50–950 ramp

primary
#802FC4
secondary
#A4CD82
accent
#E4438D
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #802FC4

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

Preview Lab → · Contrast checker → · Palette generator →

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