#804FD5#804FD5

#804FD5 is a mid, vivid violet. Relative luminance 0.150; OKLCH L 55.2% C 0.196 H 296.2°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#804FD5
RGBrgb(128, 79, 213)
HSLhsl(262, 61%, 57%)
HSVhsv(262, 63%, 84%)
CMYKcmyk(39.9%, 62.9%, 0%, 16.5%)
CIE-LABlab(45.61, 49.16, -61.81)
CIE-LCHlch(45.61, 78.97, 308.49°)
OKLaboklab(55.23% 0.0866 -0.1762)
OKLCHoklch(55.23% 0.196 296.2)
XYZxyz(23.7052, 14.9848, 64.5813)
Luminance0.1499 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804FD5 #A4D54F
analogous
#4F61D5 #804FD5 #C34FD5
triadic
#804FD5 #D5804F #4FD580
tetradic
#804FD5 #D54F61 #A4D54F #4FD5C3
square
#804FD5 #D54F61 #A4D54F #4FD5C3
split-complementary
#804FD5 #D5C34F #61D54F
monochromatic
#472189 #602CBA #804FD5 #A480E1 #C7B2ED

Accessibility & contrast

On white

5.25
#804FD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#804FD5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804FD5
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804FD5#FFFFFF#000000##FFFFFF
##804FD51.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD9
Deuteranopia (green-blind)
#006AD2
Tritanopia (blue-blind)
#6B6D8B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #804fd5;
/* rgb */ color: rgb(128, 79, 213);
/* oklch */ color: oklch(55.2% 0.196 296.2);
Tailwind
colors: {
  custom: {
    50: '#ab83e3',
    500: '#804fd5',
    950: '#000000',
  },
}
SCSS
$custom: #804fd5;
$custom-light: #ab83e3;
$custom-dark: #000000;
JSON
{
  "hex": "#804fd5",
  "rgb": {
    "r": 128,
    "g": 79,
    "b": 213
  },
  "hsl": {
    "h": 261.94,
    "s": 61.468,
    "l": 57.255
  },
  "oklch": {
    "l": 0.55232,
    "c": 0.19632,
    "h": 296.2
  },
  "luminance": 0.14985
}

Semantic roles & 50–950 ramp

primary
#804FD5
secondary
#C7DBA5
accent
#E543AA
background
#FAF8FE
surface
#F5EFFC
border
#CFCAD5
text
#110B15
muted
#807C84

Preview Lab

Preview with #804FD5

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

Preview Lab → · Contrast checker → · Palette generator →

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