#804DD3#804DD3

#804DD3 is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.8% C 0.197 H 296.9°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#804DD3
RGBrgb(128, 77, 211)
HSLhsl(263, 60%, 56%)
HSVhsv(263, 64%, 83%)
CMYKcmyk(39.3%, 63.5%, 0%, 17.3%)
CIE-LABlab(45.08, 49.69, -61.53)
CIE-LCHlch(45.08, 79.09, 308.93°)
OKLaboklab(54.8% 0.089 -0.1753)
OKLCHoklch(54.8% 0.197 296.9)
XYZxyz(23.3108, 14.5997, 63.2053)
Luminance0.1460 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804DD3 #A0D34D
analogous
#4D5DD3 #804DD3 #C34DD3
triadic
#804DD3 #D3804D #4DD380
tetradic
#804DD3 #D34D5D #A0D34D #4DD3C3
square
#804DD3 #D34D5D #A0D34D #4DD3C3
split-complementary
#804DD3 #D3C34D #5DD34D
monochromatic
#472185 #612DB6 #804DD3 #A37EDF #C6AFEB

Accessibility & contrast

On white

5.36
#804DD3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#804DD3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804DD3
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804DD3#FFFFFF#000000##FFFFFF
##804DD31.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD7
Deuteranopia (green-blind)
#0069D0
Tritanopia (blue-blind)
#6C6B89
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #804dd3;
/* rgb */ color: rgb(128, 77, 211);
/* oklch */ color: oklch(54.8% 0.197 296.9);
Tailwind
colors: {
  custom: {
    50: '#aa82e1',
    500: '#804dd3',
    950: '#000000',
  },
}
SCSS
$custom: #804dd3;
$custom-light: #aa82e1;
$custom-dark: #000000;
JSON
{
  "hex": "#804dd3",
  "rgb": {
    "r": 128,
    "g": 77,
    "b": 211
  },
  "hsl": {
    "h": 262.836,
    "s": 60.36,
    "l": 56.471
  },
  "oklch": {
    "l": 0.54803,
    "c": 0.19663,
    "h": 296.9
  },
  "luminance": 0.146
}

Semantic roles & 50–950 ramp

primary
#804DD3
secondary
#C4D9A2
accent
#E444A7
background
#FAF8FD
surface
#F5EFFB
border
#CFCAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #804DD3

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

Preview Lab → · Contrast checker → · Palette generator →

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