#804CD7#804CD7

#804CD7 is a mid, highly saturated violet. Relative luminance 0.147; OKLCH L 55.0% C 0.203 H 296.3°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#804CD7
RGBrgb(128, 76, 215)
HSLhsl(262, 63%, 57%)
HSVhsv(262, 65%, 84%)
CMYKcmyk(40.5%, 64.7%, 0%, 15.7%)
CIE-LABlab(45.17, 51.26, -63.67)
CIE-LCHlch(45.17, 81.74, 308.84°)
OKLaboklab(54.96% 0.0897 -0.1816)
OKLCHoklch(54.96% 0.203 296.3)
XYZxyz(23.7491, 14.6639, 65.8560)
Luminance0.1466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804CD7 #A3D74C
analogous
#4C5ED7 #804CD7 #C54CD7
triadic
#804CD7 #D7804C #4CD780
tetradic
#804CD7 #D74C5E #A3D74C #4CD7C5
square
#804CD7 #D74C5E #A3D74C #4CD7C5
split-complementary
#804CD7 #D7C54C #5ED74C
monochromatic
#471F8A #612ABC #804CD7 #A37EE2 #C7B0ED

Accessibility & contrast

On white

5.34
#804CD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#804CD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804CD7
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804CD7#FFFFFF#000000##FFFFFF
##804CD71.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDB
Deuteranopia (green-blind)
#0069D4
Tritanopia (blue-blind)
#6A6C8B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #804cd7;
/* rgb */ color: rgb(128, 76, 215);
/* oklch */ color: oklch(55.0% 0.203 296.3);
Tailwind
colors: {
  custom: {
    50: '#ab81e4',
    500: '#804cd7',
    950: '#000000',
  },
}
SCSS
$custom: #804cd7;
$custom-light: #ab81e4;
$custom-dark: #000000;
JSON
{
  "hex": "#804cd7",
  "rgb": {
    "r": 128,
    "g": 76,
    "b": 215
  },
  "hsl": {
    "h": 262.446,
    "s": 63.47,
    "l": 57.059
  },
  "oklch": {
    "l": 0.54957,
    "c": 0.20259,
    "h": 296.3
  },
  "luminance": 0.14664
}

Semantic roles & 50–950 ramp

primary
#804CD7
secondary
#C7DCA3
accent
#E641A9
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110A16
muted
#807C84

Preview Lab

Preview with #804CD7

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

Preview Lab → · Contrast checker → · Palette generator →

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