#804DC3#804DC3

#804DC3 is a mid, vivid violet. Relative luminance 0.138; OKLCH L 53.7% C 0.178 H 300.4°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#804DC3
RGBrgb(128, 77, 195)
HSLhsl(266, 50%, 53%)
HSVhsv(266, 61%, 76%)
CMYKcmyk(34.4%, 60.5%, 0%, 23.5%)
CIE-LABlab(44.00, 45.58, -54.04)
CIE-LCHlch(44.00, 70.70, 310.15°)
OKLaboklab(53.67% 0.09 -0.1533)
OKLCHoklch(53.67% 0.178 300.4)
XYZxyz(21.4039, 13.8369, 53.1623)
Luminance0.1384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804DC3 #90C34D
analogous
#4D55C3 #804DC3 #BB4DC3
triadic
#804DC3 #C3804D #4DC380
tetradic
#804DC3 #C34D55 #90C34D #4DC3BB
square
#804DC3 #C34D55 #90C34D #4DC3BB
split-complementary
#804DC3 #C3BB4D #55C34D
monochromatic
#462670 #62359E #804DC3 #A17BD2 #C1A9E2

Accessibility & contrast

On white

5.57
#804DC3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#804DC3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804DC3
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804DC3#FFFFFF#000000##FFFFFF
##804DC31.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068C7
Deuteranopia (green-blind)
#2567C0
Tritanopia (blue-blind)
#726681
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #804dc3;
/* rgb */ color: rgb(128, 77, 195);
/* oklch */ color: oklch(53.7% 0.178 300.4);
Tailwind
colors: {
  custom: {
    50: '#a981d6',
    500: '#804dc3',
    950: '#000000',
  },
}
SCSS
$custom: #804dc3;
$custom-light: #a981d6;
$custom-dark: #000000;
JSON
{
  "hex": "#804dc3",
  "rgb": {
    "r": 128,
    "g": 77,
    "b": 195
  },
  "hsl": {
    "h": 265.932,
    "s": 49.58,
    "l": 53.333
  },
  "oklch": {
    "l": 0.53673,
    "c": 0.1778,
    "h": 300.4
  },
  "luminance": 0.13837
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #804DC3

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

Preview Lab → · Contrast checker → · Palette generator →

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