#804FFF#804FFF

#804FFF is a mid, highly saturated violet. Relative luminance 0.174; OKLCH L 58.5% C 0.245 H 289.4°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#804FFF
RGBrgb(128, 79, 255)
HSLhsl(257, 100%, 65%)
HSVhsv(257, 69%, 100%)
CMYKcmyk(49.8%, 69%, 0%, 0%)
CIE-LABlab(48.76, 60.32, -80.38)
CIE-LCHlch(48.76, 100.49, 306.89°)
OKLaboklab(58.48% 0.081 -0.2307)
OKLCHoklch(58.48% 0.245 289.4)
XYZxyz(29.7428, 17.3999, 96.3797)
Luminance0.1740 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804FFF #CEFF4F
analogous
#4F76FF #804FFF #D84FFF
triadic
#804FFF #FF804F #4FFF80
tetradic
#804FFF #FF4F76 #CEFF4F #4FFFD8
square
#804FFF #FF4F76 #CEFF4F #4FFFD8
split-complementary
#804FFF #FFD84F #76FF4F
monochromatic
#3B00D4 #5412FF #804FFF #AC8CFF #D8C9FF

Accessibility & contrast

On white

4.69
#804FFF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#804FFF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804FFF
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804FFF#FFFFFF#000000##FFFFFF
##804FFF1.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077FF
Deuteranopia (green-blind)
#006FFC
Tritanopia (blue-blind)
#537DA2
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #804fff;
/* rgb */ color: rgb(128, 79, 255);
/* oklch */ color: oklch(58.5% 0.245 289.4);
Tailwind
colors: {
  custom: {
    50: '#af84ff',
    500: '#804fff',
    950: '#000000',
  },
}
SCSS
$custom: #804fff;
$custom-light: #af84ff;
$custom-dark: #000000;
JSON
{
  "hex": "#804fff",
  "rgb": {
    "r": 128,
    "g": 79,
    "b": 255
  },
  "hsl": {
    "h": 256.705,
    "s": 100,
    "l": 65.49
  },
  "oklch": {
    "l": 0.58476,
    "c": 0.24454,
    "h": 289.4
  },
  "luminance": 0.17401
}

Semantic roles & 50–950 ramp

primary
#804FFF
secondary
#E2F2B7
accent
#E600A6
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#120B18
muted
#817C86

Preview Lab

Preview with #804FFF

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

Preview Lab → · Contrast checker → · Palette generator →

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