#804DD2#804DD2

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

Color values

HEX#804DD2
RGBrgb(128, 77, 210)
HSLhsl(263, 60%, 56%)
HSVhsv(263, 63%, 82%)
CMYKcmyk(39%, 63.3%, 0%, 17.6%)
CIE-LABlab(45.01, 49.44, -61.06)
CIE-LCHlch(45.01, 78.57, 308.99°)
OKLaboklab(54.73% 0.0891 -0.174)
OKLCHoklch(54.73% 0.195 297.1)
XYZxyz(23.1858, 14.5497, 62.5471)
Luminance0.1455 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804DD2 #9FD24D
analogous
#4D5DD2 #804DD2 #C34DD2
triadic
#804DD2 #D2804D #4DD280
tetradic
#804DD2 #D24D5D #9FD24D #4DD2C3
square
#804DD2 #D24D5D #9FD24D #4DD2C3
split-complementary
#804DD2 #D2C34D #5DD24D
monochromatic
#472183 #612EB4 #804DD2 #A37EDE #C6AFEB

Accessibility & contrast

On white

5.37
#804DD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#804DD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804DD2
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804DD2#FFFFFF#000000##FFFFFF
##804DD21.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD6
Deuteranopia (green-blind)
#0069CF
Tritanopia (blue-blind)
#6C6B89
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #804dd2;
/* rgb */ color: rgb(128, 77, 210);
/* oklch */ color: oklch(54.7% 0.195 297.1);
Tailwind
colors: {
  custom: {
    50: '#aa81e1',
    500: '#804dd2',
    950: '#000000',
  },
}
SCSS
$custom: #804dd2;
$custom-light: #aa81e1;
$custom-dark: #000000;
JSON
{
  "hex": "#804dd2",
  "rgb": {
    "r": 128,
    "g": 77,
    "b": 210
  },
  "hsl": {
    "h": 263.008,
    "s": 59.641,
    "l": 56.275
  },
  "oklch": {
    "l": 0.5473,
    "c": 0.19547,
    "h": 297.1
  },
  "luminance": 0.1455
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #804DD2

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

Preview Lab → · Contrast checker → · Palette generator →

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