#804FD4#804FD4

#804FD4 is a mid, vivid violet. Relative luminance 0.149; OKLCH L 55.2% C 0.195 H 296.4°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#804FD4
RGBrgb(128, 79, 212)
HSLhsl(262, 61%, 57%)
HSVhsv(262, 63%, 83%)
CMYKcmyk(39.6%, 62.7%, 0%, 16.9%)
CIE-LABlab(45.54, 48.89, -61.35)
CIE-LCHlch(45.54, 78.45, 308.55°)
OKLaboklab(55.16% 0.0867 -0.1748)
OKLCHoklch(55.16% 0.195 296.4)
XYZxyz(23.5787, 14.9342, 63.9149)
Luminance0.1494 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804FD4 #A3D44F
analogous
#4F61D4 #804FD4 #C24FD4
triadic
#804FD4 #D4804F #4FD480
tetradic
#804FD4 #D44F61 #A3D44F #4FD4C2
square
#804FD4 #D44F61 #A3D44F #4FD4C2
split-complementary
#804FD4 #D4C24F #61D44F
monochromatic
#472187 #612DB9 #804FD4 #A380E0 #C7B1EC

Accessibility & contrast

On white

5.27
#804FD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#804FD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804FD4
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804FD4#FFFFFF#000000##FFFFFF
##804FD41.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD8
Deuteranopia (green-blind)
#006AD1
Tritanopia (blue-blind)
#6B6D8A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #804fd4;
/* rgb */ color: rgb(128, 79, 212);
/* oklch */ color: oklch(55.2% 0.195 296.4);
Tailwind
colors: {
  custom: {
    50: '#aa83e2',
    500: '#804fd4',
    950: '#000000',
  },
}
SCSS
$custom: #804fd4;
$custom-light: #aa83e2;
$custom-dark: #000000;
JSON
{
  "hex": "#804fd4",
  "rgb": {
    "r": 128,
    "g": 79,
    "b": 212
  },
  "hsl": {
    "h": 262.105,
    "s": 60.731,
    "l": 57.059
  },
  "oklch": {
    "l": 0.5516,
    "c": 0.19515,
    "h": 296.4
  },
  "luminance": 0.14935
}

Semantic roles & 50–950 ramp

primary
#804FD4
secondary
#C7DAA4
accent
#E444A9
background
#FAF8FD
surface
#F5EFFB
border
#CFCAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #804FD4

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

Preview Lab → · Contrast checker → · Palette generator →

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