#804CC2#804CC2

#804CC2 is a mid, vivid violet. Relative luminance 0.137; OKLCH L 53.5% C 0.178 H 300.8°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#804CC2
RGBrgb(128, 76, 194)
HSLhsl(266, 49%, 53%)
HSVhsv(266, 61%, 76%)
CMYKcmyk(34%, 60.8%, 0%, 23.9%)
CIE-LABlab(43.73, 45.87, -53.89)
CIE-LCHlch(43.73, 70.77, 310.40°)
OKLaboklab(53.46% 0.0913 -0.1529)
OKLCHoklch(53.46% 0.178 300.8)
XYZxyz(21.2218, 13.6530, 52.5457)
Luminance0.1365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804CC2 #8EC24C
analogous
#4C53C2 #804CC2 #BB4CC2
triadic
#804CC2 #C2804C #4CC280
tetradic
#804CC2 #C24C53 #8EC24C #4CC2BB
square
#804CC2 #C24C53 #8EC24C #4CC2BB
split-complementary
#804CC2 #C2BB4C #53C24C
monochromatic
#45266E #62359C #804CC2 #A07AD2 #C1A7E1

Accessibility & contrast

On white

5.63
#804CC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#804CC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804CC2
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804CC2#FFFFFF#000000##FFFFFF
##804CC21.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067C6
Deuteranopia (green-blind)
#2567BF
Tritanopia (blue-blind)
#726580
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #804cc2;
/* rgb */ color: rgb(128, 76, 194);
/* oklch */ color: oklch(53.5% 0.178 300.8);
Tailwind
colors: {
  custom: {
    50: '#a980d5',
    500: '#804cc2',
    950: '#000000',
  },
}
SCSS
$custom: #804cc2;
$custom-light: #a980d5;
$custom-dark: #000000;
JSON
{
  "hex": "#804cc2",
  "rgb": {
    "r": 128,
    "g": 76,
    "b": 194
  },
  "hsl": {
    "h": 266.441,
    "s": 49.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.53457,
    "c": 0.17805,
    "h": 300.8
  },
  "luminance": 0.13653
}

Semantic roles & 50–950 ramp

primary
#804CC2
secondary
#B8CE9B
accent
#D94F9C
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #804CC2

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

Preview Lab → · Contrast checker → · Palette generator →

#804CC2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva