#804DD7#804DD7

#804DD7 is a mid, highly saturated violet. Relative luminance 0.148; OKLCH L 55.1% C 0.201 H 296.1°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#804DD7
RGBrgb(128, 77, 215)
HSLhsl(262, 63%, 57%)
HSVhsv(262, 64%, 84%)
CMYKcmyk(40.5%, 64.2%, 0%, 15.7%)
CIE-LABlab(45.36, 50.74, -63.36)
CIE-LCHlch(45.36, 81.17, 308.69°)
OKLaboklab(55.1% 0.0886 -0.1807)
OKLCHoklch(55.1% 0.201 296.1)
XYZxyz(23.8185, 14.8028, 65.8791)
Luminance0.1480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804DD7 #A4D74D
analogous
#4D5FD7 #804DD7 #C54DD7
triadic
#804DD7 #D7804D #4DD780
tetradic
#804DD7 #D74D5F #A4D74D #4DD7C5
square
#804DD7 #D74D5F #A4D74D #4DD7C5
split-complementary
#804DD7 #D7C54D #5FD74D
monochromatic
#471F8A #602ABC #804DD7 #A47FE2 #C7B1ED

Accessibility & contrast

On white

5.30
#804DD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#804DD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804DD7
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804DD7#FFFFFF#000000##FFFFFF
##804DD71.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDB
Deuteranopia (green-blind)
#0069D4
Tritanopia (blue-blind)
#6A6D8B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #804dd7;
/* rgb */ color: rgb(128, 77, 215);
/* oklch */ color: oklch(55.1% 0.201 296.1);
Tailwind
colors: {
  custom: {
    50: '#ab82e4',
    500: '#804dd7',
    950: '#000000',
  },
}
SCSS
$custom: #804dd7;
$custom-light: #ab82e4;
$custom-dark: #000000;
JSON
{
  "hex": "#804dd7",
  "rgb": {
    "r": 128,
    "g": 77,
    "b": 215
  },
  "hsl": {
    "h": 262.174,
    "s": 63.303,
    "l": 57.255
  },
  "oklch": {
    "l": 0.55096,
    "c": 0.2013,
    "h": 296.1
  },
  "luminance": 0.14803
}

Semantic roles & 50–950 ramp

primary
#804DD7
secondary
#C7DCA4
accent
#E641A9
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #804DD7

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

Preview Lab → · Contrast checker → · Palette generator →

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