#804CD4#804CD4

#804CD4 is a mid, vivid violet. Relative luminance 0.145; OKLCH L 54.7% C 0.199 H 296.9°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#804CD4
RGBrgb(128, 76, 212)
HSLhsl(263, 61%, 56%)
HSVhsv(263, 64%, 83%)
CMYKcmyk(39.6%, 64.2%, 0%, 16.9%)
CIE-LABlab(44.96, 50.48, -62.30)
CIE-LCHlch(44.96, 80.18, 309.02°)
OKLaboklab(54.74% 0.09 -0.1776)
OKLCHoklch(54.74% 0.199 296.9)
XYZxyz(23.3671, 14.5111, 63.8444)
Luminance0.1451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804CD4 #A0D44C
analogous
#4C5CD4 #804CD4 #C44CD4
triadic
#804CD4 #D4804C #4CD480
tetradic
#804CD4 #D44C5C #A0D44C #4CD4C4
square
#804CD4 #D44C5C #A0D44C #4CD4C4
split-complementary
#804CD4 #D4C44C #5CD44C
monochromatic
#472086 #612CB7 #804CD4 #A37DE0 #C6AFEC

Accessibility & contrast

On white

5.38
#804CD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#804CD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804CD4
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804CD4#FFFFFF#000000##FFFFFF
##804CD41.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD8
Deuteranopia (green-blind)
#0069D1
Tritanopia (blue-blind)
#6B6B89
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #804cd4;
/* rgb */ color: rgb(128, 76, 212);
/* oklch */ color: oklch(54.7% 0.199 296.9);
Tailwind
colors: {
  custom: {
    50: '#ab81e2',
    500: '#804cd4',
    950: '#000000',
  },
}
SCSS
$custom: #804cd4;
$custom-light: #ab81e2;
$custom-dark: #000000;
JSON
{
  "hex": "#804cd4",
  "rgb": {
    "r": 128,
    "g": 76,
    "b": 212
  },
  "hsl": {
    "h": 262.941,
    "s": 61.261,
    "l": 56.471
  },
  "oklch": {
    "l": 0.54736,
    "c": 0.19912,
    "h": 296.9
  },
  "luminance": 0.14512
}

Semantic roles & 50–950 ramp

primary
#804CD4
secondary
#C4DAA2
accent
#E443A7
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110A15
muted
#807C84

Preview Lab

Preview with #804CD4

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

Preview Lab → · Contrast checker → · Palette generator →

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