#804CF0#804CF0

#804CF0 is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 56.9% C 0.231 H 291.9°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#804CF0
RGBrgb(128, 76, 240)
HSLhsl(259, 85%, 62%)
HSVhsv(259, 68%, 94%)
CMYKcmyk(46.7%, 68.3%, 0%, 5.9%)
CIE-LABlab(47.04, 57.82, -74.81)
CIE-LCHlch(47.04, 94.55, 307.70°)
OKLaboklab(56.88% 0.0863 -0.2144)
OKLCHoklch(56.88% 0.231 291.9)
XYZxyz(27.2103, 16.0484, 84.0851)
Luminance0.1605 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804CF0 #BCF04C
analogous
#4C6AF0 #804CF0 #D24CF0
triadic
#804CF0 #F0804C #4CF080
tetradic
#804CF0 #F04C6A #BCF04C #4CF0D2
square
#804CF0 #F04C6A #BCF04C #4CF0D2
split-complementary
#804CF0 #F0D24C #6AF04C
monochromatic
#430FB3 #5814EB #804CF0 #A884F5 #D0BDF9

Accessibility & contrast

On white

4.99
#804CF0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#804CF0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804CF0
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804CF0#FFFFFF#000000##FFFFFF
##804CF01.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072F5
Deuteranopia (green-blind)
#006CED
Tritanopia (blue-blind)
#5D7598
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #804cf0;
/* rgb */ color: rgb(128, 76, 240);
/* oklch */ color: oklch(56.9% 0.231 291.9);
Tailwind
colors: {
  custom: {
    50: '#ae82f6',
    500: '#804cf0',
    950: '#000000',
  },
}
SCSS
$custom: #804cf0;
$custom-light: #ae82f6;
$custom-dark: #000000;
JSON
{
  "hex": "#804cf0",
  "rgb": {
    "r": 128,
    "g": 76,
    "b": 240
  },
  "hsl": {
    "h": 259.024,
    "s": 84.536,
    "l": 61.961
  },
  "oklch": {
    "l": 0.56881,
    "c": 0.23108,
    "h": 291.9
  },
  "luminance": 0.16049
}

Semantic roles & 50–950 ramp

primary
#804CF0
secondary
#D7EAAE
accent
#E1049B
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #804CF0

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

Preview Lab → · Contrast checker → · Palette generator →

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