#804DD6#804DD6

#804DD6 is a mid, highly saturated violet. Relative luminance 0.148; OKLCH L 55.0% C 0.200 H 296.3°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#804DD6
RGBrgb(128, 77, 214)
HSLhsl(262, 63%, 57%)
HSVhsv(262, 64%, 84%)
CMYKcmyk(40.2%, 64%, 0%, 16.1%)
CIE-LABlab(45.29, 50.48, -62.90)
CIE-LCHlch(45.29, 80.65, 308.74°)
OKLaboklab(55.02% 0.0887 -0.1794)
OKLCHoklch(55.02% 0.2 296.3)
XYZxyz(23.6904, 14.7515, 65.2045)
Luminance0.1475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804DD6 #A3D64D
analogous
#4D5FD6 #804DD6 #C54DD6
triadic
#804DD6 #D6804D #4DD680
tetradic
#804DD6 #D64D5F #A3D64D #4DD6C5
square
#804DD6 #D64D5F #A3D64D #4DD6C5
split-complementary
#804DD6 #D6C54D #5FD64D
monochromatic
#472089 #612BBB #804DD6 #A37FE1 #C7B0ED

Accessibility & contrast

On white

5.32
#804DD6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#804DD6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804DD6
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804DD6#FFFFFF#000000##FFFFFF
##804DD61.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDA
Deuteranopia (green-blind)
#0069D3
Tritanopia (blue-blind)
#6A6C8B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #804dd6;
/* rgb */ color: rgb(128, 77, 214);
/* oklch */ color: oklch(55.0% 0.200 296.3);
Tailwind
colors: {
  custom: {
    50: '#ab82e3',
    500: '#804dd6',
    950: '#000000',
  },
}
SCSS
$custom: #804dd6;
$custom-light: #ab82e3;
$custom-dark: #000000;
JSON
{
  "hex": "#804dd6",
  "rgb": {
    "r": 128,
    "g": 77,
    "b": 214
  },
  "hsl": {
    "h": 262.336,
    "s": 62.557,
    "l": 57.059
  },
  "oklch": {
    "l": 0.55022,
    "c": 0.20013,
    "h": 296.3
  },
  "luminance": 0.14752
}

Semantic roles & 50–950 ramp

primary
#804DD6
secondary
#C7DBA4
accent
#E642A9
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #804DD6

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

Preview Lab → · Contrast checker → · Palette generator →

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