#804FD2#804FD2

#804FD2 is a mid, vivid violet. Relative luminance 0.148; OKLCH L 55.0% C 0.193 H 296.8°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#804FD2
RGBrgb(128, 79, 210)
HSLhsl(262, 59%, 57%)
HSVhsv(262, 62%, 82%)
CMYKcmyk(39%, 62.4%, 0%, 17.6%)
CIE-LABlab(45.41, 48.37, -60.43)
CIE-LCHlch(45.41, 77.40, 308.68°)
OKLaboklab(55.02% 0.0869 -0.1721)
OKLCHoklch(55.02% 0.193 296.8)
XYZxyz(23.3279, 14.8339, 62.5944)
Luminance0.1483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804FD2 #A1D24F
analogous
#4F60D2 #804FD2 #C24FD2
triadic
#804FD2 #D2804F #4FD280
tetradic
#804FD2 #D24F60 #A1D24F #4FD2C2
square
#804FD2 #D24F60 #A1D24F #4FD2C2
split-complementary
#804FD2 #D2C24F #60D24F
monochromatic
#472285 #612EB5 #804FD2 #A380DE #C6B0EB

Accessibility & contrast

On white

5.29
#804FD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#804FD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804FD2
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804FD2#FFFFFF#000000##FFFFFF
##804FD21.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD6
Deuteranopia (green-blind)
#006ACF
Tritanopia (blue-blind)
#6C6C89
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #804fd2;
/* rgb */ color: rgb(128, 79, 210);
/* oklch */ color: oklch(55.0% 0.193 296.8);
Tailwind
colors: {
  custom: {
    50: '#aa83e1',
    500: '#804fd2',
    950: '#000000',
  },
}
SCSS
$custom: #804fd2;
$custom-light: #aa83e1;
$custom-dark: #000000;
JSON
{
  "hex": "#804fd2",
  "rgb": {
    "r": 128,
    "g": 79,
    "b": 210
  },
  "hsl": {
    "h": 262.443,
    "s": 59.276,
    "l": 56.667
  },
  "oklch": {
    "l": 0.55016,
    "c": 0.19278,
    "h": 296.8
  },
  "luminance": 0.14834
}

Semantic roles & 50–950 ramp

primary
#804FD2
secondary
#C5D9A4
accent
#E245A8
background
#FAF8FD
surface
#F5EFFB
border
#CFCAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #804FD2

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

Preview Lab → · Contrast checker → · Palette generator →

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