#804DD4#804DD4

#804DD4 is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.9% C 0.198 H 296.7°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#804DD4
RGBrgb(128, 77, 212)
HSLhsl(263, 61%, 57%)
HSVhsv(263, 64%, 83%)
CMYKcmyk(39.6%, 63.7%, 0%, 16.9%)
CIE-LABlab(45.15, 49.95, -61.99)
CIE-LCHlch(45.15, 79.61, 308.87°)
OKLaboklab(54.88% 0.0889 -0.1767)
OKLCHoklch(54.88% 0.198 296.7)
XYZxyz(23.4366, 14.6500, 63.8675)
Luminance0.1465 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804DD4 #A1D44D
analogous
#4D5ED4 #804DD4 #C44DD4
triadic
#804DD4 #D4804D #4DD480
tetradic
#804DD4 #D44D5E #A1D44D #4DD4C4
square
#804DD4 #D44D5E #A1D44D #4DD4C4
split-complementary
#804DD4 #D4C44D #5ED44D
monochromatic
#472086 #612CB7 #804DD4 #A37EE0 #C6B0EC

Accessibility & contrast

On white

5.34
#804DD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#804DD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804DD4
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804DD4#FFFFFF#000000##FFFFFF
##804DD41.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD8
Deuteranopia (green-blind)
#0069D1
Tritanopia (blue-blind)
#6B6C8A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #804dd4;
/* rgb */ color: rgb(128, 77, 212);
/* oklch */ color: oklch(54.9% 0.198 296.7);
Tailwind
colors: {
  custom: {
    50: '#ab82e2',
    500: '#804dd4',
    950: '#000000',
  },
}
SCSS
$custom: #804dd4;
$custom-light: #ab82e2;
$custom-dark: #000000;
JSON
{
  "hex": "#804dd4",
  "rgb": {
    "r": 128,
    "g": 77,
    "b": 212
  },
  "hsl": {
    "h": 262.667,
    "s": 61.086,
    "l": 56.667
  },
  "oklch": {
    "l": 0.54876,
    "c": 0.19781,
    "h": 296.7
  },
  "luminance": 0.1465
}

Semantic roles & 50–950 ramp

primary
#804DD4
secondary
#C5DAA3
accent
#E444A8
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #804DD4

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

Preview Lab → · Contrast checker → · Palette generator →

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