#804CD9#804CD9

#804CD9 is a mid, highly saturated violet. Relative luminance 0.148; OKLCH L 55.1% C 0.205 H 295.9°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#804CD9
RGBrgb(128, 76, 217)
HSLhsl(262, 65%, 57%)
HSVhsv(262, 65%, 85%)
CMYKcmyk(41%, 65%, 0%, 14.9%)
CIE-LABlab(45.31, 51.78, -64.58)
CIE-LCHlch(45.31, 82.78, 308.72°)
OKLaboklab(55.11% 0.0895 -0.1843)
OKLCHoklch(55.11% 0.205 295.9)
XYZxyz(24.0076, 14.7673, 67.2177)
Luminance0.1477 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804CD9 #A5D94C
analogous
#4C5ED9 #804CD9 #C74CD9
triadic
#804CD9 #D9804C #4CD980
tetradic
#804CD9 #D94C5E #A5D94C #4CD9C7
square
#804CD9 #D94C5E #A5D94C #4CD9C7
split-complementary
#804CD9 #D9C74C #5ED94C
monochromatic
#471E8D #6029BF #804CD9 #A47EE4 #C8B1EE

Accessibility & contrast

On white

5.31
#804CD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#804CD9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804CD9
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804CD9#FFFFFF#000000##FFFFFF
##804CD91.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDD
Deuteranopia (green-blind)
#0069D6
Tritanopia (blue-blind)
#696D8C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #804cd9;
/* rgb */ color: rgb(128, 76, 217);
/* oklch */ color: oklch(55.1% 0.205 295.9);
Tailwind
colors: {
  custom: {
    50: '#ab81e6',
    500: '#804cd9',
    950: '#000000',
  },
}
SCSS
$custom: #804cd9;
$custom-light: #ab81e6;
$custom-dark: #000000;
JSON
{
  "hex": "#804cd9",
  "rgb": {
    "r": 128,
    "g": 76,
    "b": 217
  },
  "hsl": {
    "h": 262.128,
    "s": 64.977,
    "l": 57.451
  },
  "oklch": {
    "l": 0.55105,
    "c": 0.2049,
    "h": 295.9
  },
  "luminance": 0.14768
}

Semantic roles & 50–950 ramp

primary
#804CD9
secondary
#C8DDA4
accent
#E840AA
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110A16
muted
#807C84

Preview Lab

Preview with #804CD9

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

Preview Lab → · Contrast checker → · Palette generator →

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