#804FF2#804FF2

#804FF2 is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 57.4% C 0.230 H 291.2°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#804FF2
RGBrgb(128, 79, 242)
HSLhsl(258, 86%, 63%)
HSVhsv(258, 67%, 95%)
CMYKcmyk(47.1%, 67.4%, 0%, 5.1%)
CIE-LABlab(47.74, 56.84, -74.78)
CIE-LCHlch(47.74, 93.93, 307.24°)
OKLaboklab(57.43% 0.0832 -0.2143)
OKLCHoklch(57.43% 0.23 291.2)
XYZxyz(27.7206, 16.5909, 85.7290)
Luminance0.1659 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804FF2 #C1F24F
analogous
#4F6FF2 #804FF2 #D24FF2
triadic
#804FF2 #F2804F #4FF280
tetradic
#804FF2 #F24F6F #C1F24F #4FF2D2
square
#804FF2 #F24F6F #C1F24F #4FF2D2
split-complementary
#804FF2 #F2D24F #6FF24F
monochromatic
#410EB9 #5716EE #804FF2 #A988F6 #D2C1FA

Accessibility & contrast

On white

4.86
#804FF2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#804FF2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804FF2
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804FF2#FFFFFF#000000##FFFFFF
##804FF21.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074F7
Deuteranopia (green-blind)
#006EEF
Tritanopia (blue-blind)
#5C789A
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #804ff2;
/* rgb */ color: rgb(128, 79, 242);
/* oklch */ color: oklch(57.4% 0.230 291.2);
Tailwind
colors: {
  custom: {
    50: '#ae84f7',
    500: '#804ff2',
    950: '#000000',
  },
}
SCSS
$custom: #804ff2;
$custom-light: #ae84f7;
$custom-dark: #000000;
JSON
{
  "hex": "#804ff2",
  "rgb": {
    "r": 128,
    "g": 79,
    "b": 242
  },
  "hsl": {
    "h": 258.037,
    "s": 86.243,
    "l": 62.941
  },
  "oklch": {
    "l": 0.57432,
    "c": 0.22989,
    "h": 291.2
  },
  "luminance": 0.16592
}

Semantic roles & 50–950 ramp

primary
#804FF2
secondary
#DAECB1
accent
#E3039F
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #804FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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