#804DD5#804DD5

#804DD5 is a mid, vivid violet. Relative luminance 0.147; OKLCH L 54.9% C 0.199 H 296.5°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#804DD5
RGBrgb(128, 77, 213)
HSLhsl(263, 62%, 57%)
HSVhsv(263, 64%, 84%)
CMYKcmyk(39.9%, 63.8%, 0%, 16.5%)
CIE-LABlab(45.22, 50.21, -62.44)
CIE-LCHlch(45.22, 80.13, 308.80°)
OKLaboklab(54.95% 0.0888 -0.178)
OKLCHoklch(54.95% 0.199 296.5)
XYZxyz(23.5631, 14.7006, 64.5339)
Luminance0.1470 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804DD5 #A2D54D
analogous
#4D5ED5 #804DD5 #C44DD5
triadic
#804DD5 #D5804D #4DD580
tetradic
#804DD5 #D54D5E #A2D54D #4DD5C4
square
#804DD5 #D54D5E #A2D54D #4DD5C4
split-complementary
#804DD5 #D5C44D #5ED54D
monochromatic
#472088 #612CB9 #804DD5 #A37FE1 #C7B0EC

Accessibility & contrast

On white

5.33
#804DD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#804DD5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804DD5
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804DD5#FFFFFF#000000##FFFFFF
##804DD51.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #804dd5;
/* rgb */ color: rgb(128, 77, 213);
/* oklch */ color: oklch(54.9% 0.199 296.5);
Tailwind
colors: {
  custom: {
    50: '#ab82e3',
    500: '#804dd5',
    950: '#000000',
  },
}
SCSS
$custom: #804dd5;
$custom-light: #ab82e3;
$custom-dark: #000000;
JSON
{
  "hex": "#804dd5",
  "rgb": {
    "r": 128,
    "g": 77,
    "b": 213
  },
  "hsl": {
    "h": 262.5,
    "s": 61.818,
    "l": 56.863
  },
  "oklch": {
    "l": 0.54949,
    "c": 0.19897,
    "h": 296.5
  },
  "luminance": 0.14701
}

Semantic roles & 50–950 ramp

primary
#804DD5
secondary
#C6DBA3
accent
#E543A8
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B15
muted
#807C84

Preview Lab

Preview with #804DD5

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

Preview Lab → · Contrast checker → · Palette generator →

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