#804BD3#804BD3

#804BD3 is a mid, vivid violet. Relative luminance 0.143; OKLCH L 54.5% C 0.199 H 297.2°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#804BD3
RGBrgb(128, 75, 211)
HSLhsl(263, 61%, 56%)
HSVhsv(263, 64%, 83%)
CMYKcmyk(39.3%, 64.5%, 0%, 17.3%)
CIE-LABlab(44.69, 50.74, -62.15)
CIE-LCHlch(44.69, 80.24, 309.23°)
OKLaboklab(54.52% 0.0912 -0.1772)
OKLCHoklch(54.52% 0.199 297.2)
XYZxyz(23.1730, 14.3241, 63.1593)
Luminance0.1432 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804BD3 #9ED34B
analogous
#4B5AD3 #804BD3 #C44BD3
triadic
#804BD3 #D3804B #4BD380
tetradic
#804BD3 #D34B5A #9ED34B #4BD3C4
square
#804BD3 #D34B5A #9ED34B #4BD3C4
split-complementary
#804BD3 #D3C44B #5AD34B
monochromatic
#472083 #612CB5 #804BD3 #A37CDF #C5ADEB

Accessibility & contrast

On white

5.43
#804BD3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#804BD3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804BD3
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804BD3#FFFFFF#000000##FFFFFF
##804BD31.005.433.865.43
#FFFFFF5.431.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD7
Deuteranopia (green-blind)
#0068D0
Tritanopia (blue-blind)
#6C6A88
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #804bd3;
/* rgb */ color: rgb(128, 75, 211);
/* oklch */ color: oklch(54.5% 0.199 297.2);
Tailwind
colors: {
  custom: {
    50: '#ab80e1',
    500: '#804bd3',
    950: '#000000',
  },
}
SCSS
$custom: #804bd3;
$custom-light: #ab80e1;
$custom-dark: #000000;
JSON
{
  "hex": "#804bd3",
  "rgb": {
    "r": 128,
    "g": 75,
    "b": 211
  },
  "hsl": {
    "h": 263.382,
    "s": 60.714,
    "l": 56.078
  },
  "oklch": {
    "l": 0.54523,
    "c": 0.19927,
    "h": 297.2
  },
  "luminance": 0.14324
}

Semantic roles & 50–950 ramp

primary
#804BD3
secondary
#C3D9A1
accent
#E444A6
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110A15
muted
#807C83

Preview Lab

Preview with #804BD3

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

Preview Lab → · Contrast checker → · Palette generator →

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