#804CD1#804CD1

#804CD1 is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.5% C 0.196 H 297.5°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#804CD1
RGBrgb(128, 76, 209)
HSLhsl(263, 59%, 56%)
HSVhsv(263, 64%, 82%)
CMYKcmyk(38.8%, 63.6%, 0%, 18%)
CIE-LABlab(44.75, 49.70, -60.92)
CIE-LCHlch(44.75, 78.62, 309.21°)
OKLaboklab(54.52% 0.0903 -0.1735)
OKLCHoklch(54.52% 0.196 297.5)
XYZxyz(22.9922, 14.3612, 61.8699)
Luminance0.1436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804CD1 #9DD14C
analogous
#4C5AD1 #804CD1 #C34CD1
triadic
#804CD1 #D1804C #4CD180
tetradic
#804CD1 #D14C5A #9DD14C #4CD1C3
square
#804CD1 #D14C5A #9DD14C #4CD1C3
split-complementary
#804CD1 #D1C34C #5AD14C
monochromatic
#472181 #612EB2 #804CD1 #A37DDE #C5ADEA

Accessibility & contrast

On white

5.42
#804CD1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#804CD1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804CD1
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804CD1#FFFFFF#000000##FFFFFF
##804CD11.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD5
Deuteranopia (green-blind)
#0068CE
Tritanopia (blue-blind)
#6D6A88
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #804cd1;
/* rgb */ color: rgb(128, 76, 209);
/* oklch */ color: oklch(54.5% 0.196 297.5);
Tailwind
colors: {
  custom: {
    50: '#aa81e0',
    500: '#804cd1',
    950: '#000000',
  },
}
SCSS
$custom: #804cd1;
$custom-light: #aa81e0;
$custom-dark: #000000;
JSON
{
  "hex": "#804cd1",
  "rgb": {
    "r": 128,
    "g": 76,
    "b": 209
  },
  "hsl": {
    "h": 263.459,
    "s": 59.111,
    "l": 55.882
  },
  "oklch": {
    "l": 0.54517,
    "c": 0.19563,
    "h": 297.5
  },
  "luminance": 0.14362
}

Semantic roles & 50–950 ramp

primary
#804CD1
secondary
#C2D8A1
accent
#E246A5
background
#FAF8FD
surface
#F5EFFB
border
#CFCAD4
text
#110A15
muted
#807C83

Preview Lab

Preview with #804CD1

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

Preview Lab → · Contrast checker → · Palette generator →

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