#804BCF#804BCF

#804BCF is a mid, vivid violet. Relative luminance 0.141; OKLCH L 54.2% C 0.195 H 298.1°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#804BCF
RGBrgb(128, 75, 207)
HSLhsl(264, 58%, 55%)
HSVhsv(264, 64%, 81%)
CMYKcmyk(38.2%, 63.8%, 0%, 18.8%)
CIE-LABlab(44.41, 49.71, -60.31)
CIE-LCHlch(44.41, 78.16, 309.50°)
OKLaboklab(54.23% 0.0916 -0.1718)
OKLCHoklch(54.23% 0.195 298.1)
XYZxyz(22.6778, 14.1260, 60.5512)
Luminance0.1413 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804BCF #9ACF4B
analogous
#4B58CF #804BCF #C24BCF
triadic
#804BCF #CF804B #4BCF80
tetradic
#804BCF #CF4B58 #9ACF4B #4BCFC2
square
#804BCF #CF4B58 #9ACF4B #4BCFC2
split-complementary
#804BCF #CFC24B #58CF4B
monochromatic
#47227E #622EAE #804BCF #A27BDC #C4ACE9

Accessibility & contrast

On white

5.49
#804BCF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#804BCF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804BCF
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804BCF#FFFFFF#000000##FFFFFF
##804BCF1.005.493.835.49
#FFFFFF5.491.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D3
Deuteranopia (green-blind)
#0068CC
Tritanopia (blue-blind)
#6D6986
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #804bcf;
/* rgb */ color: rgb(128, 75, 207);
/* oklch */ color: oklch(54.2% 0.195 298.1);
Tailwind
colors: {
  custom: {
    50: '#aa80de',
    500: '#804bcf',
    950: '#000000',
  },
}
SCSS
$custom: #804bcf;
$custom-light: #aa80de;
$custom-dark: #000000;
JSON
{
  "hex": "#804bcf",
  "rgb": {
    "r": 128,
    "g": 75,
    "b": 207
  },
  "hsl": {
    "h": 264.091,
    "s": 57.895,
    "l": 55.294
  },
  "oklch": {
    "l": 0.54231,
    "c": 0.19464,
    "h": 298.1
  },
  "luminance": 0.14126
}

Semantic roles & 50–950 ramp

primary
#804BCF
secondary
#C0D69F
accent
#E147A3
background
#FAF8FD
surface
#F5EFFB
border
#CFCAD4
text
#110A15
muted
#807C83

Preview Lab

Preview with #804BCF

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

Preview Lab → · Contrast checker → · Palette generator →

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