#804FC0#804FC0

#804FC0 is a mid, vivid violet. Relative luminance 0.140; OKLCH L 53.8% C 0.171 H 300.8°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#804FC0
RGBrgb(128, 79, 192)
HSLhsl(266, 47%, 53%)
HSVhsv(266, 59%, 75%)
CMYKcmyk(33.3%, 58.9%, 0%, 24.7%)
CIE-LABlab(44.21, 43.73, -51.95)
CIE-LCHlch(44.21, 67.91, 310.09°)
OKLaboklab(53.77% 0.0876 -0.1472)
OKLCHoklch(53.77% 0.171 300.8)
XYZxyz(21.2102, 13.9868, 51.4412)
Luminance0.1399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804FC0 #8FC04F
analogous
#4F56C0 #804FC0 #B84FC0
triadic
#804FC0 #C0804F #4FC080
tetradic
#804FC0 #C04F56 #8FC04F #4FC0B8
square
#804FC0 #C04F56 #8FC04F #4FC0B8
split-complementary
#804FC0 #C0B84F #56C04F
monochromatic
#46276D #62379A #804FC0 #A17CD0 #C1A9E0

Accessibility & contrast

On white

5.53
#804FC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#804FC0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804FC0
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804FC0#FFFFFF#000000##FFFFFF
##804FC01.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1468C4
Deuteranopia (green-blind)
#2D68BD
Tritanopia (blue-blind)
#736680
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #804fc0;
/* rgb */ color: rgb(128, 79, 192);
/* oklch */ color: oklch(53.8% 0.171 300.8);
Tailwind
colors: {
  custom: {
    50: '#a982d4',
    500: '#804fc0',
    950: '#000000',
  },
}
SCSS
$custom: #804fc0;
$custom-light: #a982d4;
$custom-dark: #000000;
JSON
{
  "hex": "#804fc0",
  "rgb": {
    "r": 128,
    "g": 79,
    "b": 192
  },
  "hsl": {
    "h": 266.018,
    "s": 47.28,
    "l": 53.137
  },
  "oklch": {
    "l": 0.53768,
    "c": 0.17131,
    "h": 300.8
  },
  "luminance": 0.13987
}

Semantic roles & 50–950 ramp

primary
#804FC0
secondary
#B9CE9D
accent
#D7519D
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100B14
muted
#7F7C83

Preview Lab

Preview with #804FC0

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

Preview Lab → · Contrast checker → · Palette generator →

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