#804BCC#804BCC

#804BCC is a mid, vivid violet. Relative luminance 0.140; OKLCH L 54.0% C 0.191 H 298.7°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#804BCC
RGBrgb(128, 75, 204)
HSLhsl(265, 56%, 55%)
HSVhsv(265, 63%, 80%)
CMYKcmyk(37.3%, 63.2%, 0%, 20%)
CIE-LABlab(44.21, 48.95, -58.92)
CIE-LCHlch(44.21, 76.59, 309.72°)
OKLaboklab(54.02% 0.0918 -0.1677)
OKLCHoklch(54.02% 0.191 298.7)
XYZxyz(22.3145, 13.9807, 58.6379)
Luminance0.1398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804BCC #97CC4B
analogous
#4B57CC #804BCC #C04BCC
triadic
#804BCC #CC804B #4BCC80
tetradic
#804BCC #CC4B57 #97CC4B #4BCCC0
square
#804BCC #CC4B57 #97CC4B #4BCCC0
split-complementary
#804BCC #CCC04B #57CC4B
monochromatic
#47237A #6230AA #804BCC #A27BDA #C3AAE7

Accessibility & contrast

On white

5.53
#804BCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#804BCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804BCC
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804BCC#FFFFFF#000000##FFFFFF
##804BCC1.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D0
Deuteranopia (green-blind)
#0767C9
Tritanopia (blue-blind)
#6F6885
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #804bcc;
/* rgb */ color: rgb(128, 75, 204);
/* oklch */ color: oklch(54.0% 0.191 298.7);
Tailwind
colors: {
  custom: {
    50: '#aa80dc',
    500: '#804bcc',
    950: '#000000',
  },
}
SCSS
$custom: #804bcc;
$custom-light: #aa80dc;
$custom-dark: #000000;
JSON
{
  "hex": "#804bcc",
  "rgb": {
    "r": 128,
    "g": 75,
    "b": 204
  },
  "hsl": {
    "h": 264.651,
    "s": 55.844,
    "l": 54.706
  },
  "oklch": {
    "l": 0.54015,
    "c": 0.19116,
    "h": 298.7
  },
  "luminance": 0.13981
}

Semantic roles & 50–950 ramp

primary
#804BCC
secondary
#BED59E
accent
#DF49A1
background
#FAF8FD
surface
#F5EFFB
border
#CFCAD4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #804BCC

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

Preview Lab → · Contrast checker → · Palette generator →

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