#804FD3#804FD3

#804FD3 is a mid, vivid violet. Relative luminance 0.149; OKLCH L 55.1% C 0.194 H 296.6°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#804FD3
RGBrgb(128, 79, 211)
HSLhsl(262, 60%, 57%)
HSVhsv(262, 63%, 83%)
CMYKcmyk(39.3%, 62.6%, 0%, 17.3%)
CIE-LABlab(45.47, 48.63, -60.89)
CIE-LCHlch(45.47, 77.93, 308.61°)
OKLaboklab(55.09% 0.0868 -0.1735)
OKLCHoklch(55.09% 0.194 296.6)
XYZxyz(23.4529, 14.8839, 63.2526)
Luminance0.1488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804FD3 #A2D34F
analogous
#4F60D3 #804FD3 #C24FD3
triadic
#804FD3 #D3804F #4FD380
tetradic
#804FD3 #D34F60 #A2D34F #4FD3C2
square
#804FD3 #D34F60 #A2D34F #4FD3C2
split-complementary
#804FD3 #D3C24F #60D34F
monochromatic
#472286 #612EB7 #804FD3 #A380DF #C7B1EB

Accessibility & contrast

On white

5.28
#804FD3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#804FD3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804FD3
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804FD3#FFFFFF#000000##FFFFFF
##804FD31.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD7
Deuteranopia (green-blind)
#006AD0
Tritanopia (blue-blind)
#6C6D8A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #804fd3;
/* rgb */ color: rgb(128, 79, 211);
/* oklch */ color: oklch(55.1% 0.194 296.6);
Tailwind
colors: {
  custom: {
    50: '#aa83e1',
    500: '#804fd3',
    950: '#000000',
  },
}
SCSS
$custom: #804fd3;
$custom-light: #aa83e1;
$custom-dark: #000000;
JSON
{
  "hex": "#804fd3",
  "rgb": {
    "r": 128,
    "g": 79,
    "b": 211
  },
  "hsl": {
    "h": 262.273,
    "s": 60,
    "l": 56.863
  },
  "oklch": {
    "l": 0.55088,
    "c": 0.19397,
    "h": 296.6
  },
  "luminance": 0.14884
}

Semantic roles & 50–950 ramp

primary
#804FD3
secondary
#C6DAA4
accent
#E345A8
background
#FAF8FD
surface
#F5EFFB
border
#CFCAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #804FD3

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

Preview Lab → · Contrast checker → · Palette generator →

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