#804BD1#804BD1

#804BD1 is a mid, vivid violet. Relative luminance 0.142; OKLCH L 54.4% C 0.197 H 297.6°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#804BD1
RGBrgb(128, 75, 209)
HSLhsl(264, 59%, 56%)
HSVhsv(264, 64%, 82%)
CMYKcmyk(38.8%, 64.1%, 0%, 18%)
CIE-LABlab(44.55, 50.23, -61.23)
CIE-LCHlch(44.55, 79.20, 309.36°)
OKLaboklab(54.38% 0.0914 -0.1745)
OKLCHoklch(54.38% 0.197 297.6)
XYZxyz(22.9239, 14.2244, 61.8471)
Luminance0.1422 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804BD1 #9CD14B
analogous
#4B59D1 #804BD1 #C34BD1
triadic
#804BD1 #D1804B #4BD180
tetradic
#804BD1 #D14B59 #9CD14B #4BD1C3
square
#804BD1 #D14B59 #9CD14B #4BD1C3
split-complementary
#804BD1 #D1C34B #59D14B
monochromatic
#472181 #622DB1 #804BD1 #A27CDD #C5ACEA

Accessibility & contrast

On white

5.46
#804BD1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#804BD1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804BD1
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804BD1#FFFFFF#000000##FFFFFF
##804BD11.005.463.845.46
#FFFFFF5.461.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD5
Deuteranopia (green-blind)
#0068CE
Tritanopia (blue-blind)
#6D6987
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #804bd1;
/* rgb */ color: rgb(128, 75, 209);
/* oklch */ color: oklch(54.4% 0.197 297.6);
Tailwind
colors: {
  custom: {
    50: '#aa80e0',
    500: '#804bd1',
    950: '#000000',
  },
}
SCSS
$custom: #804bd1;
$custom-light: #aa80e0;
$custom-dark: #000000;
JSON
{
  "hex": "#804bd1",
  "rgb": {
    "r": 128,
    "g": 75,
    "b": 209
  },
  "hsl": {
    "h": 263.731,
    "s": 59.292,
    "l": 55.686
  },
  "oklch": {
    "l": 0.54377,
    "c": 0.19696,
    "h": 297.6
  },
  "luminance": 0.14225
}

Semantic roles & 50–950 ramp

primary
#804BD1
secondary
#C2D8A0
accent
#E245A4
background
#FAF8FD
surface
#F5EFFB
border
#CFCAD4
text
#110A15
muted
#807C83

Preview Lab

Preview with #804BD1

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

Preview Lab → · Contrast checker → · Palette generator →

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