#804CD6#804CD6

#804CD6 is a mid, highly saturated violet. Relative luminance 0.146; OKLCH L 54.9% C 0.201 H 296.5°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#804CD6
RGBrgb(128, 76, 214)
HSLhsl(263, 63%, 57%)
HSVhsv(263, 64%, 84%)
CMYKcmyk(40.2%, 64.5%, 0%, 16.1%)
CIE-LABlab(45.10, 51.00, -63.22)
CIE-LCHlch(45.10, 81.22, 308.89°)
OKLaboklab(54.88% 0.0898 -0.1803)
OKLCHoklch(54.88% 0.201 296.5)
XYZxyz(23.6210, 14.6127, 65.1813)
Luminance0.1461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804CD6 #A2D64C
analogous
#4C5DD6 #804CD6 #C54CD6
triadic
#804CD6 #D6804C #4CD680
tetradic
#804CD6 #D64C5D #A2D64C #4CD6C5
square
#804CD6 #D64C5D #A2D64C #4CD6C5
split-complementary
#804CD6 #D6C54C #5DD64C
monochromatic
#471F88 #612BBA #804CD6 #A37EE1 #C7B0ED

Accessibility & contrast

On white

5.35
#804CD6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#804CD6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804CD6
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804CD6#FFFFFF#000000##FFFFFF
##804CD61.005.353.925.35
#FFFFFF5.351.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDA
Deuteranopia (green-blind)
#0069D3
Tritanopia (blue-blind)
#6A6C8A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #804cd6;
/* rgb */ color: rgb(128, 76, 214);
/* oklch */ color: oklch(54.9% 0.201 296.5);
Tailwind
colors: {
  custom: {
    50: '#ab81e3',
    500: '#804cd6',
    950: '#000000',
  },
}
SCSS
$custom: #804cd6;
$custom-light: #ab81e3;
$custom-dark: #000000;
JSON
{
  "hex": "#804cd6",
  "rgb": {
    "r": 128,
    "g": 76,
    "b": 214
  },
  "hsl": {
    "h": 262.609,
    "s": 62.727,
    "l": 56.863
  },
  "oklch": {
    "l": 0.54883,
    "c": 0.20143,
    "h": 296.5
  },
  "luminance": 0.14613
}

Semantic roles & 50–950 ramp

primary
#804CD6
secondary
#C6DBA3
accent
#E642A8
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110A16
muted
#807C84

Preview Lab

Preview with #804CD6

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

Preview Lab → · Contrast checker → · Palette generator →

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