#804DDF#804DDF

#804DDF is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 55.7% C 0.211 H 294.6°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#804DDF
RGBrgb(128, 77, 223)
HSLhsl(261, 70%, 59%)
HSVhsv(261, 65%, 87%)
CMYKcmyk(42.6%, 65.5%, 0%, 12.5%)
CIE-LABlab(45.94, 52.83, -66.99)
CIE-LCHlch(45.94, 85.31, 308.26°)
OKLaboklab(55.69% 0.0878 -0.1914)
OKLCHoklch(55.69% 0.211 294.6)
XYZxyz(24.8717, 15.2240, 71.4258)
Luminance0.1522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804DDF #ACDF4D
analogous
#4D63DF #804DDF #C94DDF
triadic
#804DDF #DF804D #4DDF80
tetradic
#804DDF #DF4D63 #ACDF4D #4DDFC9
square
#804DDF #DF4D63 #ACDF4D #4DDFC9
split-complementary
#804DDF #DFC94D #63DF4D
monochromatic
#461B97 #5E24CA #804DDF #A581E8 #CAB5F2

Accessibility & contrast

On white

5.19
#804DDF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#804DDF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804DDF
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804DDF#FFFFFF#000000##FFFFFF
##804DDF1.005.194.045.19
#FFFFFF5.191.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE3
Deuteranopia (green-blind)
#006ADC
Tritanopia (blue-blind)
#66708F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #804ddf;
/* rgb */ color: rgb(128, 77, 223);
/* oklch */ color: oklch(55.7% 0.211 294.6);
Tailwind
colors: {
  custom: {
    50: '#ac82ea',
    500: '#804ddf',
    950: '#000000',
  },
}
SCSS
$custom: #804ddf;
$custom-light: #ac82ea;
$custom-dark: #000000;
JSON
{
  "hex": "#804ddf",
  "rgb": {
    "r": 128,
    "g": 77,
    "b": 223
  },
  "hsl": {
    "h": 260.959,
    "s": 69.524,
    "l": 58.824
  },
  "oklch": {
    "l": 0.55693,
    "c": 0.21055,
    "h": 294.6
  },
  "luminance": 0.15225
}

Semantic roles & 50–950 ramp

primary
#804DDF
secondary
#CDE1A7
accent
#EC3BAF
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #804DDF

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

Preview Lab → · Contrast checker → · Palette generator →

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