#804FD9#804FD9

#804FD9 is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 55.5% C 0.201 H 295.4°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#804FD9
RGBrgb(128, 79, 217)
HSLhsl(261, 64%, 58%)
HSVhsv(261, 64%, 85%)
CMYKcmyk(41%, 63.6%, 0%, 14.9%)
CIE-LABlab(45.89, 50.20, -63.64)
CIE-LCHlch(45.89, 81.06, 308.27°)
OKLaboklab(55.52% 0.0863 -0.1816)
OKLCHoklch(55.52% 0.201 295.4)
XYZxyz(24.2191, 15.1904, 67.2882)
Luminance0.1519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804FD9 #A8D94F
analogous
#4F63D9 #804FD9 #C54FD9
triadic
#804FD9 #D9804F #4FD980
tetradic
#804FD9 #D94F63 #A8D94F #4FD9C5
square
#804FD9 #D94F63 #A8D94F #4FD9C5
split-complementary
#804FD9 #D9C54F #63D94F
monochromatic
#471F8F #5F2AC1 #804FD9 #A481E4 #C9B4EF

Accessibility & contrast

On white

5.20
#804FD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#804FD9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804FD9
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804FD9#FFFFFF#000000##FFFFFF
##804FD91.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDD
Deuteranopia (green-blind)
#006BD6
Tritanopia (blue-blind)
#696F8D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #804fd9;
/* rgb */ color: rgb(128, 79, 217);
/* oklch */ color: oklch(55.5% 0.201 295.4);
Tailwind
colors: {
  custom: {
    50: '#ab83e6',
    500: '#804fd9',
    950: '#000000',
  },
}
SCSS
$custom: #804fd9;
$custom-light: #ab83e6;
$custom-dark: #000000;
JSON
{
  "hex": "#804fd9",
  "rgb": {
    "r": 128,
    "g": 79,
    "b": 217
  },
  "hsl": {
    "h": 261.304,
    "s": 64.486,
    "l": 58.039
  },
  "oklch": {
    "l": 0.55524,
    "c": 0.20103,
    "h": 295.4
  },
  "luminance": 0.15191
}

Semantic roles & 50–950 ramp

primary
#804FD9
secondary
#CADDA6
accent
#E740AC
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #804FD9

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

Preview Lab → · Contrast checker → · Palette generator →

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