#804CF5#804CF5

#804CF5 is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 57.3% C 0.237 H 291.2°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#804CF5
RGBrgb(128, 76, 245)
HSLhsl(258, 89%, 63%)
HSVhsv(258, 69%, 96%)
CMYKcmyk(47.8%, 69%, 0%, 3.9%)
CIE-LABlab(47.43, 59.14, -76.97)
CIE-LCHlch(47.43, 97.07, 307.54°)
OKLaboklab(57.28% 0.0854 -0.2207)
OKLCHoklch(57.28% 0.237 291.2)
XYZxyz(27.9633, 16.3496, 88.0509)
Luminance0.1635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804CF5 #C1F54C
analogous
#4C6CF5 #804CF5 #D54CF5
triadic
#804CF5 #F5804C #4CF580
tetradic
#804CF5 #F54C6C #C1F54C #4CF5D5
square
#804CF5 #F54C6C #C1F54C #4CF5D5
split-complementary
#804CF5 #F5D54C #6CF54C
monochromatic
#410BBC #5712F2 #804CF5 #A986F8 #D2C0FB

Accessibility & contrast

On white

4.92
#804CF5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#804CF5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804CF5
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804CF5#FFFFFF#000000##FFFFFF
##804CF51.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073FA
Deuteranopia (green-blind)
#006DF2
Tritanopia (blue-blind)
#5A779B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #804cf5;
/* rgb */ color: rgb(128, 76, 245);
/* oklch */ color: oklch(57.3% 0.237 291.2);
Tailwind
colors: {
  custom: {
    50: '#ae82fa',
    500: '#804cf5',
    950: '#000000',
  },
}
SCSS
$custom: #804cf5;
$custom-light: #ae82fa;
$custom-dark: #000000;
JSON
{
  "hex": "#804cf5",
  "rgb": {
    "r": 128,
    "g": 76,
    "b": 245
  },
  "hsl": {
    "h": 258.462,
    "s": 89.418,
    "l": 62.941
  },
  "oklch": {
    "l": 0.57282,
    "c": 0.23668,
    "h": 291.2
  },
  "luminance": 0.16351
}

Semantic roles & 50–950 ramp

primary
#804CF5
secondary
#DAEDB0
accent
#E6009F
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #804CF5

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

Preview Lab → · Contrast checker → · Palette generator →

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