#804BC6#804BC6

#804BC6 is a mid, vivid violet. Relative luminance 0.137; OKLCH L 53.6% C 0.184 H 300.1°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#804BC6
RGBrgb(128, 75, 198)
HSLhsl(266, 52%, 54%)
HSVhsv(266, 62%, 78%)
CMYKcmyk(35.4%, 62.1%, 0%, 22.4%)
CIE-LABlab(43.80, 47.42, -56.11)
CIE-LCHlch(43.80, 73.46, 310.20°)
OKLaboklab(53.59% 0.0922 -0.1594)
OKLCHoklch(53.59% 0.184 300.1)
XYZxyz(21.6087, 13.6984, 54.9207)
Luminance0.1370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804BC6 #91C64B
analogous
#4B53C6 #804BC6 #BE4BC6
triadic
#804BC6 #C6804B #4BC680
tetradic
#804BC6 #C64B53 #91C64B #4BC6BE
square
#804BC6 #C64B53 #91C64B #4BC6BE
split-complementary
#804BC6 #C6BE4B #53C64B
monochromatic
#462472 #6233A1 #804BC6 #A179D5 #C2A8E3

Accessibility & contrast

On white

5.62
#804BC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#804BC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804BC6
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804BC6#FFFFFF#000000##FFFFFF
##804BC61.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CA
Deuteranopia (green-blind)
#1B67C3
Tritanopia (blue-blind)
#716681
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #804bc6;
/* rgb */ color: rgb(128, 75, 198);
/* oklch */ color: oklch(53.6% 0.184 300.1);
Tailwind
colors: {
  custom: {
    50: '#a980d8',
    500: '#804bc6',
    950: '#000000',
  },
}
SCSS
$custom: #804bc6;
$custom-light: #a980d8;
$custom-dark: #000000;
JSON
{
  "hex": "#804bc6",
  "rgb": {
    "r": 128,
    "g": 75,
    "b": 198
  },
  "hsl": {
    "h": 265.854,
    "s": 51.899,
    "l": 53.529
  },
  "oklch": {
    "l": 0.5359,
    "c": 0.18416,
    "h": 300.1
  },
  "luminance": 0.13699
}

Semantic roles & 50–950 ramp

primary
#804BC6
secondary
#BAD19C
accent
#DB4C9E
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #804BC6

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

Preview Lab → · Contrast checker → · Palette generator →

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