#804DC8#804DC8

#804DC8 is a mid, vivid violet. Relative luminance 0.141; OKLCH L 54.0% C 0.184 H 299.3°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#804DC8
RGBrgb(128, 77, 200)
HSLhsl(265, 53%, 54%)
HSVhsv(265, 62%, 78%)
CMYKcmyk(36%, 61.5%, 0%, 21.6%)
CIE-LABlab(44.33, 46.86, -56.41)
CIE-LCHlch(44.33, 73.33, 309.72°)
OKLaboklab(54.02% 0.0898 -0.1603)
OKLCHoklch(54.02% 0.184 299.3)
XYZxyz(21.9787, 14.0669, 56.1896)
Luminance0.1407 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804DC8 #95C84D
analogous
#4D58C8 #804DC8 #BE4DC8
triadic
#804DC8 #C8804D #4DC880
tetradic
#804DC8 #C84D58 #95C84D #4DC8BE
square
#804DC8 #C84D58 #95C84D #4DC8BE
split-complementary
#804DC8 #C8BE4D #58C84D
monochromatic
#462476 #6233A5 #804DC8 #A17CD6 #C3ABE5

Accessibility & contrast

On white

5.51
#804DC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#804DC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804DC8
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804DC8#FFFFFF#000000##FFFFFF
##804DC81.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CC
Deuteranopia (green-blind)
#1C68C5
Tritanopia (blue-blind)
#706883
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #804dc8;
/* rgb */ color: rgb(128, 77, 200);
/* oklch */ color: oklch(54.0% 0.184 299.3);
Tailwind
colors: {
  custom: {
    50: '#a981d9',
    500: '#804dc8',
    950: '#000000',
  },
}
SCSS
$custom: #804dc8;
$custom-light: #a981d9;
$custom-dark: #000000;
JSON
{
  "hex": "#804dc8",
  "rgb": {
    "r": 128,
    "g": 77,
    "b": 200
  },
  "hsl": {
    "h": 264.878,
    "s": 52.79,
    "l": 54.314
  },
  "oklch": {
    "l": 0.54018,
    "c": 0.18372,
    "h": 299.3
  },
  "luminance": 0.14067
}

Semantic roles & 50–950 ramp

primary
#804DC8
secondary
#BDD29E
accent
#DC4CA0
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #804DC8

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

Preview Lab → · Contrast checker → · Palette generator →

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