#804DD1#804DD1

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

Color values

HEX#804DD1
RGBrgb(128, 77, 209)
HSLhsl(263, 59%, 56%)
HSVhsv(263, 63%, 82%)
CMYKcmyk(38.8%, 63.2%, 0%, 18%)
CIE-LABlab(44.94, 49.18, -60.60)
CIE-LCHlch(44.94, 78.05, 309.06°)
OKLaboklab(54.66% 0.0892 -0.1726)
OKLCHoklch(54.66% 0.194 297.3)
XYZxyz(23.0616, 14.5000, 61.8930)
Luminance0.1450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804DD1 #9ED14D
analogous
#4D5CD1 #804DD1 #C24DD1
triadic
#804DD1 #D1804D #4DD180
tetradic
#804DD1 #D14D5C #9ED14D #4DD1C2
square
#804DD1 #D14D5C #9ED14D #4DD1C2
split-complementary
#804DD1 #D1C24D #5CD14D
monochromatic
#472282 #612EB3 #804DD1 #A37EDE #C5AEEA

Accessibility & contrast

On white

5.38
#804DD1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#804DD1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804DD1
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804DD1#FFFFFF#000000##FFFFFF
##804DD11.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD5
Deuteranopia (green-blind)
#0069CE
Tritanopia (blue-blind)
#6C6B88
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #804dd1;
/* rgb */ color: rgb(128, 77, 209);
/* oklch */ color: oklch(54.7% 0.194 297.3);
Tailwind
colors: {
  custom: {
    50: '#aa81e0',
    500: '#804dd1',
    950: '#000000',
  },
}
SCSS
$custom: #804dd1;
$custom-light: #aa81e0;
$custom-dark: #000000;
JSON
{
  "hex": "#804dd1",
  "rgb": {
    "r": 128,
    "g": 77,
    "b": 209
  },
  "hsl": {
    "h": 263.182,
    "s": 58.929,
    "l": 56.078
  },
  "oklch": {
    "l": 0.54658,
    "c": 0.1943,
    "h": 297.3
  },
  "luminance": 0.145
}

Semantic roles & 50–950 ramp

primary
#804DD1
secondary
#C3D8A2
accent
#E246A6
background
#FAF8FD
surface
#F5EFFB
border
#CFCAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #804DD1

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

Preview Lab → · Contrast checker → · Palette generator →

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