#804DFF#804DFF

#804DFF is a mid, highly saturated violet. Relative luminance 0.171; OKLCH L 58.2% C 0.247 H 289.6°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#804DFF
RGBrgb(128, 77, 255)
HSLhsl(257, 100%, 65%)
HSVhsv(257, 70%, 100%)
CMYKcmyk(49.8%, 69.8%, 0%, 0%)
CIE-LABlab(48.41, 61.31, -80.96)
CIE-LCHlch(48.41, 101.55, 307.14°)
OKLaboklab(58.22% 0.0827 -0.2324)
OKLCHoklch(58.22% 0.247 289.6)
XYZxyz(29.6008, 17.1157, 96.3323)
Luminance0.1712 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804DFF #CCFF4D
analogous
#4D73FF #804DFF #D94DFF
triadic
#804DFF #FF804D #4DFF80
tetradic
#804DFF #FF4D73 #CCFF4D #4DFFD9
square
#804DFF #FF4D73 #CCFF4D #4DFFD9
split-complementary
#804DFF #FFD94D #73FF4D
monochromatic
#3C00D2 #5410FF #804DFF #AC8AFF #D7C7FF

Accessibility & contrast

On white

4.75
#804DFF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#804DFF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804DFF
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804DFF#FFFFFF#000000##FFFFFF
##804DFF1.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076FF
Deuteranopia (green-blind)
#006FFC
Tritanopia (blue-blind)
#537BA1
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #804dff;
/* rgb */ color: rgb(128, 77, 255);
/* oklch */ color: oklch(58.2% 0.247 289.6);
Tailwind
colors: {
  custom: {
    50: '#af83ff',
    500: '#804dff',
    950: '#000000',
  },
}
SCSS
$custom: #804dff;
$custom-light: #af83ff;
$custom-dark: #000000;
JSON
{
  "hex": "#804dff",
  "rgb": {
    "r": 128,
    "g": 77,
    "b": 255
  },
  "hsl": {
    "h": 257.191,
    "s": 100,
    "l": 65.098
  },
  "oklch": {
    "l": 0.58224,
    "c": 0.24671,
    "h": 289.6
  },
  "luminance": 0.17117
}

Semantic roles & 50–950 ramp

primary
#804DFF
secondary
#E1F2B6
accent
#E600A4
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#120B18
muted
#817C86

Preview Lab

Preview with #804DFF

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

Preview Lab → · Contrast checker → · Palette generator →

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