#804AFF#804AFF

#804AFF is a mid, highly saturated violet. Relative luminance 0.167; OKLCH L 57.9% C 0.250 H 289.9°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#804AFF
RGBrgb(128, 74, 255)
HSLhsl(258, 100%, 65%)
HSVhsv(258, 71%, 100%)
CMYKcmyk(49.8%, 71%, 0%, 0%)
CIE-LABlab(47.89, 62.76, -81.80)
CIE-LCHlch(47.89, 103.10, 307.49°)
OKLaboklab(57.86% 0.0852 -0.2349)
OKLCHoklch(57.86% 0.25 289.9)
XYZxyz(29.3957, 16.7055, 96.2640)
Luminance0.1671 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804AFF #C9FF4A
analogous
#4A6EFF #804AFF #DB4AFF
triadic
#804AFF #FF804A #4AFF80
tetradic
#804AFF #FF4A6E #C9FF4A #4AFFDB
square
#804AFF #FF4A6E #C9FF4A #4AFFDB
split-complementary
#804AFF #FFDB4A #6EFF4A
monochromatic
#3E00CF #550DFF #804AFF #AB87FF #D6C4FF

Accessibility & contrast

On white

4.84
#804AFF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#804AFF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804AFF
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804AFF#FFFFFF#000000##FFFFFF
##804AFF1.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075FF
Deuteranopia (green-blind)
#006DFC
Tritanopia (blue-blind)
#537AA0
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #804aff;
/* rgb */ color: rgb(128, 74, 255);
/* oklch */ color: oklch(57.9% 0.250 289.9);
Tailwind
colors: {
  custom: {
    50: '#af81ff',
    500: '#804aff',
    950: '#000000',
  },
}
SCSS
$custom: #804aff;
$custom-light: #af81ff;
$custom-dark: #000000;
JSON
{
  "hex": "#804aff",
  "rgb": {
    "r": 128,
    "g": 74,
    "b": 255
  },
  "hsl": {
    "h": 257.901,
    "s": 100,
    "l": 64.51
  },
  "oklch": {
    "l": 0.57856,
    "c": 0.24987,
    "h": 289.9
  },
  "luminance": 0.16707
}

Semantic roles & 50–950 ramp

primary
#804AFF
secondary
#DFF2B3
accent
#E600A1
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#120B18
muted
#817C86

Preview Lab

Preview with #804AFF

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

Preview Lab → · Contrast checker → · Palette generator →

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