#804BCB#804BCB

#804BCB is a mid, vivid violet. Relative luminance 0.139; OKLCH L 53.9% C 0.190 H 298.9°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#804BCB
RGBrgb(128, 75, 203)
HSLhsl(265, 55%, 55%)
HSVhsv(265, 63%, 80%)
CMYKcmyk(36.9%, 63.1%, 0%, 20.4%)
CIE-LABlab(44.14, 48.69, -58.45)
CIE-LCHlch(44.14, 76.07, 309.80°)
OKLaboklab(53.94% 0.0919 -0.1663)
OKLCHoklch(53.94% 0.19 298.9)
XYZxyz(22.1950, 13.9329, 58.0083)
Luminance0.1393 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804BCB #96CB4B
analogous
#4B56CB #804BCB #C04BCB
triadic
#804BCB #CB804B #4BCB80
tetradic
#804BCB #CB4B56 #96CB4B #4BCBC0
square
#804BCB #CB4B56 #96CB4B #4BCBC0
split-complementary
#804BCB #CBC04B #56CB4B
monochromatic
#462379 #6231A8 #804BCB #A27AD9 #C3AAE6

Accessibility & contrast

On white

5.55
#804BCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#804BCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804BCB
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804BCB#FFFFFF#000000##FFFFFF
##804BCB1.005.553.795.55
#FFFFFF5.551.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CF
Deuteranopia (green-blind)
#0C67C8
Tritanopia (blue-blind)
#6F6784
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #804bcb;
/* rgb */ color: rgb(128, 75, 203);
/* oklch */ color: oklch(53.9% 0.190 298.9);
Tailwind
colors: {
  custom: {
    50: '#aa80dc',
    500: '#804bcb',
    950: '#000000',
  },
}
SCSS
$custom: #804bcb;
$custom-light: #aa80dc;
$custom-dark: #000000;
JSON
{
  "hex": "#804bcb",
  "rgb": {
    "r": 128,
    "g": 75,
    "b": 203
  },
  "hsl": {
    "h": 264.844,
    "s": 55.172,
    "l": 54.51
  },
  "oklch": {
    "l": 0.53944,
    "c": 0.18999,
    "h": 298.9
  },
  "luminance": 0.13933
}

Semantic roles & 50–950 ramp

primary
#804BCB
secondary
#BED49E
accent
#DF49A1
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #804BCB

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

Preview Lab → · Contrast checker → · Palette generator →

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