#804FCC#804FCC

#804FCC is a mid, vivid violet. Relative luminance 0.145; OKLCH L 54.6% C 0.186 H 298.0°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#804FCC
RGBrgb(128, 79, 204)
HSLhsl(264, 55%, 55%)
HSVhsv(264, 61%, 80%)
CMYKcmyk(37.3%, 61.3%, 0%, 20%)
CIE-LABlab(45.00, 46.81, -57.63)
CIE-LCHlch(45.00, 74.25, 309.08°)
OKLaboklab(54.59% 0.0872 -0.1639)
OKLCHoklch(54.59% 0.186 298)
XYZxyz(22.5944, 14.5405, 58.7312)
Luminance0.1454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804FCC #9BCC4F
analogous
#4F5CCC #804FCC #BE4FCC
triadic
#804FCC #CC804F #4FCC80
tetradic
#804FCC #CC4F5C #9BCC4F #4FCCBE
square
#804FCC #CC4F5C #9BCC4F #4FCCBE
split-complementary
#804FCC #CCBE4F #5CCC4F
monochromatic
#47247D #6232AC #804FCC #A27EDA #C4AEE7

Accessibility & contrast

On white

5.37
#804FCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#804FCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804FCC
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804FCC#FFFFFF#000000##FFFFFF
##804FCC1.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD0
Deuteranopia (green-blind)
#1869C9
Tritanopia (blue-blind)
#6E6A86
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #804fcc;
/* rgb */ color: rgb(128, 79, 204);
/* oklch */ color: oklch(54.6% 0.186 298.0);
Tailwind
colors: {
  custom: {
    50: '#aa83dc',
    500: '#804fcc',
    950: '#000000',
  },
}
SCSS
$custom: #804fcc;
$custom-light: #aa83dc;
$custom-dark: #000000;
JSON
{
  "hex": "#804fcc",
  "rgb": {
    "r": 128,
    "g": 79,
    "b": 204
  },
  "hsl": {
    "h": 263.52,
    "s": 55.066,
    "l": 55.49
  },
  "oklch": {
    "l": 0.54591,
    "c": 0.18567,
    "h": 298
  },
  "luminance": 0.14541
}

Semantic roles & 50–950 ramp

primary
#804FCC
secondary
#C1D5A1
accent
#DE49A4
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #804FCC

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

Preview Lab → · Contrast checker → · Palette generator →

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