#804CD3#804CD3

#804CD3 is a mid, vivid violet. Relative luminance 0.145; OKLCH L 54.7% C 0.198 H 297.1°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#804CD3
RGBrgb(128, 76, 211)
HSLhsl(263, 61%, 56%)
HSVhsv(263, 64%, 83%)
CMYKcmyk(39.3%, 64%, 0%, 17.3%)
CIE-LABlab(44.89, 50.22, -61.84)
CIE-LCHlch(44.89, 79.66, 309.08°)
OKLaboklab(54.66% 0.0901 -0.1763)
OKLCHoklch(54.66% 0.198 297.1)
XYZxyz(23.2414, 14.4608, 63.1821)
Luminance0.1446 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804CD3 #9FD34C
analogous
#4C5CD3 #804CD3 #C44CD3
triadic
#804CD3 #D3804C #4CD380
tetradic
#804CD3 #D34C5C #9FD34C #4CD3C4
square
#804CD3 #D34C5C #9FD34C #4CD3C4
split-complementary
#804CD3 #D3C44C #5CD34C
monochromatic
#472084 #612DB5 #804CD3 #A37DDF #C6AEEB

Accessibility & contrast

On white

5.40
#804CD3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#804CD3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804CD3
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804CD3#FFFFFF#000000##FFFFFF
##804CD31.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD7
Deuteranopia (green-blind)
#0069D0
Tritanopia (blue-blind)
#6C6B89
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #804cd3;
/* rgb */ color: rgb(128, 76, 211);
/* oklch */ color: oklch(54.7% 0.198 297.1);
Tailwind
colors: {
  custom: {
    50: '#ab81e1',
    500: '#804cd3',
    950: '#000000',
  },
}
SCSS
$custom: #804cd3;
$custom-light: #ab81e1;
$custom-dark: #000000;
JSON
{
  "hex": "#804cd3",
  "rgb": {
    "r": 128,
    "g": 76,
    "b": 211
  },
  "hsl": {
    "h": 263.111,
    "s": 60.538,
    "l": 56.275
  },
  "oklch": {
    "l": 0.54662,
    "c": 0.19796,
    "h": 297.1
  },
  "luminance": 0.14461
}

Semantic roles & 50–950 ramp

primary
#804CD3
secondary
#C4D9A2
accent
#E444A6
background
#FAF8FD
surface
#F5EFFB
border
#CFCAD4
text
#110A15
muted
#807C83

Preview Lab

Preview with #804CD3

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

Preview Lab → · Contrast checker → · Palette generator →

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