#804BCD#804BCD

#804BCD is a mid, vivid violet. Relative luminance 0.140; OKLCH L 54.1% C 0.192 H 298.5°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#804BCD
RGBrgb(128, 75, 205)
HSLhsl(264, 57%, 55%)
HSVhsv(264, 63%, 80%)
CMYKcmyk(37.6%, 63.4%, 0%, 19.6%)
CIE-LABlab(44.27, 49.20, -59.38)
CIE-LCHlch(44.27, 77.12, 309.64°)
OKLaboklab(54.09% 0.0917 -0.169)
OKLCHoklch(54.09% 0.192 298.5)
XYZxyz(22.4348, 14.0288, 59.2716)
Luminance0.1403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804BCD #98CD4B
analogous
#4B57CD #804BCD #C14BCD
triadic
#804BCD #CD804B #4BCD80
tetradic
#804BCD #CD4B57 #98CD4B #4BCDC1
square
#804BCD #CD4B57 #98CD4B #4BCDC1
split-complementary
#804BCD #CDC14B #57CD4B
monochromatic
#47227B #6230AB #804BCD #A27BDA #C4ABE8

Accessibility & contrast

On white

5.52
#804BCD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#804BCD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804BCD
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804BCD#FFFFFF#000000##FFFFFF
##804BCD1.005.523.815.52
#FFFFFF5.521.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D1
Deuteranopia (green-blind)
#0267CA
Tritanopia (blue-blind)
#6E6885
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #804bcd;
/* rgb */ color: rgb(128, 75, 205);
/* oklch */ color: oklch(54.1% 0.192 298.5);
Tailwind
colors: {
  custom: {
    50: '#aa80dd',
    500: '#804bcd',
    950: '#000000',
  },
}
SCSS
$custom: #804bcd;
$custom-light: #aa80dd;
$custom-dark: #000000;
JSON
{
  "hex": "#804bcd",
  "rgb": {
    "r": 128,
    "g": 75,
    "b": 205
  },
  "hsl": {
    "h": 264.462,
    "s": 56.522,
    "l": 54.902
  },
  "oklch": {
    "l": 0.54087,
    "c": 0.19231,
    "h": 298.5
  },
  "luminance": 0.14029
}

Semantic roles & 50–950 ramp

primary
#804BCD
secondary
#BFD59F
accent
#E048A2
background
#FAF8FD
surface
#F5EFFB
border
#CFCAD4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #804BCD

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

Preview Lab → · Contrast checker → · Palette generator →

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