#804BD4#804BD4

#804BD4 is a mid, highly saturated violet. Relative luminance 0.144; OKLCH L 54.6% C 0.200 H 297.0°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#804BD4
RGBrgb(128, 75, 212)
HSLhsl(263, 61%, 56%)
HSVhsv(263, 65%, 83%)
CMYKcmyk(39.6%, 64.6%, 0%, 16.9%)
CIE-LABlab(44.77, 51.00, -62.61)
CIE-LCHlch(44.77, 80.75, 309.17°)
OKLaboklab(54.6% 0.0911 -0.1785)
OKLCHoklch(54.6% 0.2 297)
XYZxyz(23.2988, 14.3744, 63.8216)
Luminance0.1437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804BD4 #9FD44B
analogous
#4B5BD4 #804BD4 #C54BD4
triadic
#804BD4 #D4804B #4BD480
tetradic
#804BD4 #D44B5B #9FD44B #4BD4C5
square
#804BD4 #D44B5B #9FD44B #4BD4C5
split-complementary
#804BD4 #D4C54B #5BD44B
monochromatic
#472085 #612CB6 #804BD4 #A37CE0 #C6AEEC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##804BD4#FFFFFF#000000##FFFFFF
##804BD41.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)
#006AD8
Deuteranopia (green-blind)
#0068D1
Tritanopia (blue-blind)
#6B6B89
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #804bd4;
/* rgb */ color: rgb(128, 75, 212);
/* oklch */ color: oklch(54.6% 0.200 297.0);
Tailwind
colors: {
  custom: {
    50: '#ab80e2',
    500: '#804bd4',
    950: '#000000',
  },
}
SCSS
$custom: #804bd4;
$custom-light: #ab80e2;
$custom-dark: #000000;
JSON
{
  "hex": "#804bd4",
  "rgb": {
    "r": 128,
    "g": 75,
    "b": 212
  },
  "hsl": {
    "h": 263.212,
    "s": 61.435,
    "l": 56.275
  },
  "oklch": {
    "l": 0.54597,
    "c": 0.20042,
    "h": 297
  },
  "luminance": 0.14375
}

Semantic roles & 50–950 ramp

primary
#804BD4
secondary
#C4DAA1
accent
#E543A6
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110A15
muted
#807C84

Preview Lab

Preview with #804BD4

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

Preview Lab → · Contrast checker → · Palette generator →

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