#804FD1#804FD1

#804FD1 is a mid, vivid violet. Relative luminance 0.148; OKLCH L 54.9% C 0.192 H 297.0°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#804FD1
RGBrgb(128, 79, 209)
HSLhsl(263, 59%, 56%)
HSVhsv(263, 62%, 82%)
CMYKcmyk(38.8%, 62.2%, 0%, 18%)
CIE-LABlab(45.34, 48.11, -59.96)
CIE-LCHlch(45.34, 76.88, 308.74°)
OKLaboklab(54.95% 0.0869 -0.1707)
OKLCHoklch(54.95% 0.192 297)
XYZxyz(23.2037, 14.7842, 61.9404)
Luminance0.1479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804FD1 #A0D14F
analogous
#4F5FD1 #804FD1 #C14FD1
triadic
#804FD1 #D1804F #4FD180
tetradic
#804FD1 #D14F5F #A0D14F #4FD1C1
square
#804FD1 #D14F5F #A0D14F #4FD1C1
split-complementary
#804FD1 #D1C14F #5FD14F
monochromatic
#472283 #612FB4 #804FD1 #A380DE #C6B0EA

Accessibility & contrast

On white

5.31
#804FD1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#804FD1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804FD1
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804FD1#FFFFFF#000000##FFFFFF
##804FD11.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD5
Deuteranopia (green-blind)
#046ACE
Tritanopia (blue-blind)
#6C6C89
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #804fd1;
/* rgb */ color: rgb(128, 79, 209);
/* oklch */ color: oklch(54.9% 0.192 297.0);
Tailwind
colors: {
  custom: {
    50: '#aa83e0',
    500: '#804fd1',
    950: '#000000',
  },
}
SCSS
$custom: #804fd1;
$custom-light: #aa83e0;
$custom-dark: #000000;
JSON
{
  "hex": "#804fd1",
  "rgb": {
    "r": 128,
    "g": 79,
    "b": 209
  },
  "hsl": {
    "h": 262.615,
    "s": 58.559,
    "l": 56.471
  },
  "oklch": {
    "l": 0.54945,
    "c": 0.1916,
    "h": 297
  },
  "luminance": 0.14785
}

Semantic roles & 50–950 ramp

primary
#804FD1
secondary
#C4D9A3
accent
#E246A7
background
#FAF8FD
surface
#F5EFFB
border
#CFCAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #804FD1

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

Preview Lab → · Contrast checker → · Palette generator →

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