#804DE3#804DE3

#804DE3 is a mid, highly saturated violet. Relative luminance 0.154; OKLCH L 56.0% C 0.215 H 293.9°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#804DE3
RGBrgb(128, 77, 227)
HSLhsl(260, 73%, 60%)
HSVhsv(260, 66%, 89%)
CMYKcmyk(43.6%, 66.1%, 0%, 11%)
CIE-LABlab(46.23, 53.88, -68.78)
CIE-LCHlch(46.23, 87.37, 308.08°)
OKLaboklab(56% 0.0873 -0.1967)
OKLCHoklch(56% 0.215 293.9)
XYZxyz(25.4173, 15.4423, 74.2996)
Luminance0.1544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804DE3 #B0E34D
analogous
#4D65E3 #804DE3 #CB4DE3
triadic
#804DE3 #E3804D #4DE380
tetradic
#804DE3 #E34D65 #B0E34D #4DE3CB
square
#804DE3 #E34D65 #B0E34D #4DE3CB
split-complementary
#804DE3 #E3CB4D #65E34D
monochromatic
#46199D #5D21D2 #804DE3 #A682EB #CBB7F4

Accessibility & contrast

On white

5.14
#804DE3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#804DE3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804DE3
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804DE3#FFFFFF#000000##FFFFFF
##804DE31.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE8
Deuteranopia (green-blind)
#006BE0
Tritanopia (blue-blind)
#647192
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #804de3;
/* rgb */ color: rgb(128, 77, 227);
/* oklch */ color: oklch(56.0% 0.215 293.9);
Tailwind
colors: {
  custom: {
    50: '#ac82ed',
    500: '#804de3',
    950: '#000000',
  },
}
SCSS
$custom: #804de3;
$custom-light: #ac82ed;
$custom-dark: #000000;
JSON
{
  "hex": "#804de3",
  "rgb": {
    "r": 128,
    "g": 77,
    "b": 227
  },
  "hsl": {
    "h": 260.4,
    "s": 72.816,
    "l": 59.608
  },
  "oklch": {
    "l": 0.55997,
    "c": 0.21515,
    "h": 293.9
  },
  "luminance": 0.15443
}

Semantic roles & 50–950 ramp

primary
#804DE3
secondary
#CFE3A9
accent
#F038B1
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #804DE3

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

Preview Lab → · Contrast checker → · Palette generator →

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