#803EC4#803EC4

#803EC4 is a mid, vivid violet. Relative luminance 0.120; OKLCH L 51.7% C 0.199 H 302.5°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#803EC4
RGBrgb(128, 62, 196)
HSLhsl(270, 53%, 51%)
HSVhsv(270, 68%, 77%)
CMYKcmyk(34.7%, 68.4%, 0%, 23.1%)
CIE-LABlab(41.25, 53.52, -59.07)
CIE-LCHlch(41.25, 79.70, 312.18°)
OKLaboklab(51.71% 0.1069 -0.168)
OKLCHoklch(51.71% 0.199 302.5)
XYZxyz(20.5862, 12.0199, 53.4494)
Luminance0.1202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#803EC4 #82C43E
analogous
#3E3FC4 #803EC4 #C33EC4
triadic
#803EC4 #C4803E #3EC480
tetradic
#803EC4 #C43E3F #82C43E #3EC4C3
square
#803EC4 #C43E3F #82C43E #3EC4C3
split-complementary
#803EC4 #C4C33E #3FC43E
monochromatic
#432068 #622E97 #803EC4 #9F6DD2 #BE9CE1

Accessibility & contrast

On white

6.17
#803EC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#803EC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #803EC4
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##803EC4#FFFFFF#000000##FFFFFF
##803EC41.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C8
Deuteranopia (green-blind)
#0061C1
Tritanopia (blue-blind)
#725D7C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #803ec4;
/* rgb */ color: rgb(128, 62, 196);
/* oklch */ color: oklch(51.7% 0.199 302.5);
Tailwind
colors: {
  custom: {
    50: '#aa78d7',
    500: '#803ec4',
    950: '#000000',
  },
}
SCSS
$custom: #803ec4;
$custom-light: #aa78d7;
$custom-dark: #000000;
JSON
{
  "hex": "#803ec4",
  "rgb": {
    "r": 128,
    "g": 62,
    "b": 196
  },
  "hsl": {
    "h": 269.552,
    "s": 53.175,
    "l": 50.588
  },
  "oklch": {
    "l": 0.51709,
    "c": 0.19917,
    "h": 302.5
  },
  "luminance": 0.1202
}

Semantic roles & 50–950 ramp

primary
#803EC4
secondary
#AFCD91
accent
#DD4B95
background
#FAF7FD
surface
#F5EEFA
border
#CFC9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #803EC4

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

Preview Lab → · Contrast checker → · Palette generator →

#803EC4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva