#804DC2#804DC2

#804DC2 is a mid, vivid violet. Relative luminance 0.138; OKLCH L 53.6% C 0.177 H 300.7°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#804DC2
RGBrgb(128, 77, 194)
HSLhsl(266, 49%, 53%)
HSVhsv(266, 60%, 76%)
CMYKcmyk(34%, 60.3%, 0%, 23.9%)
CIE-LABlab(43.93, 45.33, -53.57)
CIE-LCHlch(43.93, 70.17, 310.24°)
OKLaboklab(53.6% 0.09 -0.1519)
OKLCHoklch(53.6% 0.177 300.7)
XYZxyz(21.2912, 13.7919, 52.5689)
Luminance0.1379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804DC2 #8FC24D
analogous
#4D54C2 #804DC2 #BA4DC2
triadic
#804DC2 #C2804D #4DC280
tetradic
#804DC2 #C24D54 #8FC24D #4DC2BA
square
#804DC2 #C24D54 #8FC24D #4DC2BA
split-complementary
#804DC2 #C2BA4D #54C24D
monochromatic
#46266F #62369C #804DC2 #A17BD2 #C1A8E1

Accessibility & contrast

On white

5.59
#804DC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#804DC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804DC2
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804DC2#FFFFFF#000000##FFFFFF
##804DC21.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0267C6
Deuteranopia (green-blind)
#2767BF
Tritanopia (blue-blind)
#726680
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #804dc2;
/* rgb */ color: rgb(128, 77, 194);
/* oklch */ color: oklch(53.6% 0.177 300.7);
Tailwind
colors: {
  custom: {
    50: '#a981d5',
    500: '#804dc2',
    950: '#000000',
  },
}
SCSS
$custom: #804dc2;
$custom-light: #a981d5;
$custom-dark: #000000;
JSON
{
  "hex": "#804dc2",
  "rgb": {
    "r": 128,
    "g": 77,
    "b": 194
  },
  "hsl": {
    "h": 266.154,
    "s": 48.954,
    "l": 53.137
  },
  "oklch": {
    "l": 0.53604,
    "c": 0.17661,
    "h": 300.7
  },
  "luminance": 0.13792
}

Semantic roles & 50–950 ramp

primary
#804DC2
secondary
#B9CF9C
accent
#D94F9D
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #804DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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