#804FC2#804FC2

#804FC2 is a mid, vivid violet. Relative luminance 0.141; OKLCH L 53.9% C 0.174 H 300.3°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#804FC2
RGBrgb(128, 79, 194)
HSLhsl(266, 49%, 54%)
HSVhsv(266, 59%, 76%)
CMYKcmyk(34%, 59.3%, 0%, 23.9%)
CIE-LABlab(44.34, 44.24, -52.91)
CIE-LCHlch(44.34, 68.97, 309.90°)
OKLaboklab(53.9% 0.0876 -0.15)
OKLCHoklch(53.9% 0.174 300.3)
XYZxyz(21.4333, 14.0761, 52.6162)
Luminance0.1408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804FC2 #91C24F
analogous
#4F57C2 #804FC2 #B94FC2
triadic
#804FC2 #C2804F #4FC280
tetradic
#804FC2 #C24F57 #91C24F #4FC2B9
square
#804FC2 #C24F57 #91C24F #4FC2B9
split-complementary
#804FC2 #C2B94F #57C24F
monochromatic
#462770 #62379D #804FC2 #A17CD2 #C2AAE2

Accessibility & contrast

On white

5.50
#804FC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#804FC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804FC2
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804FC2#FFFFFF#000000##FFFFFF
##804FC21.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F68C6
Deuteranopia (green-blind)
#2A68BF
Tritanopia (blue-blind)
#726781
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #804fc2;
/* rgb */ color: rgb(128, 79, 194);
/* oklch */ color: oklch(53.9% 0.174 300.3);
Tailwind
colors: {
  custom: {
    50: '#a982d5',
    500: '#804fc2',
    950: '#000000',
  },
}
SCSS
$custom: #804fc2;
$custom-light: #a982d5;
$custom-dark: #000000;
JSON
{
  "hex": "#804fc2",
  "rgb": {
    "r": 128,
    "g": 79,
    "b": 194
  },
  "hsl": {
    "h": 265.565,
    "s": 48.523,
    "l": 53.529
  },
  "oklch": {
    "l": 0.53903,
    "c": 0.17372,
    "h": 300.3
  },
  "luminance": 0.14076
}

Semantic roles & 50–950 ramp

primary
#804FC2
secondary
#BACF9E
accent
#D8509E
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100B14
muted
#7F7C83

Preview Lab

Preview with #804FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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