#804DD9#804DD9

#804DD9 is a mid, highly saturated violet. Relative luminance 0.149; OKLCH L 55.2% C 0.204 H 295.7°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#804DD9
RGBrgb(128, 77, 217)
HSLhsl(262, 65%, 58%)
HSVhsv(262, 65%, 85%)
CMYKcmyk(41%, 64.5%, 0%, 14.9%)
CIE-LABlab(45.51, 51.26, -64.27)
CIE-LCHlch(45.51, 82.21, 308.57°)
OKLaboklab(55.24% 0.0884 -0.1834)
OKLCHoklch(55.24% 0.204 295.7)
XYZxyz(24.0771, 14.9062, 67.2408)
Luminance0.1491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804DD9 #A6D94D
analogous
#4D60D9 #804DD9 #C64DD9
triadic
#804DD9 #D9804D #4DD980
tetradic
#804DD9 #D94D60 #A6D94D #4DD9C6
square
#804DD9 #D94D60 #A6D94D #4DD9C6
split-complementary
#804DD9 #D9C64D #60D94D
monochromatic
#471E8D #6029C0 #804DD9 #A47FE4 #C8B2EF

Accessibility & contrast

On white

5.27
#804DD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#804DD9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804DD9
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804DD9#FFFFFF#000000##FFFFFF
##804DD91.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDD
Deuteranopia (green-blind)
#006AD6
Tritanopia (blue-blind)
#696E8C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #804dd9;
/* rgb */ color: rgb(128, 77, 217);
/* oklch */ color: oklch(55.2% 0.204 295.7);
Tailwind
colors: {
  custom: {
    50: '#ab82e6',
    500: '#804dd9',
    950: '#000000',
  },
}
SCSS
$custom: #804dd9;
$custom-light: #ab82e6;
$custom-dark: #000000;
JSON
{
  "hex": "#804dd9",
  "rgb": {
    "r": 128,
    "g": 77,
    "b": 217
  },
  "hsl": {
    "h": 261.857,
    "s": 64.815,
    "l": 57.647
  },
  "oklch": {
    "l": 0.55243,
    "c": 0.20362,
    "h": 295.7
  },
  "luminance": 0.14907
}

Semantic roles & 50–950 ramp

primary
#804DD9
secondary
#C9DDA5
accent
#E840AB
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #804DD9

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

Preview Lab → · Contrast checker → · Palette generator →

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