#804BD9#804BD9

#804BD9 is a mid, highly saturated violet. Relative luminance 0.146; OKLCH L 55.0% C 0.206 H 296.1°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#804BD9
RGBrgb(128, 75, 217)
HSLhsl(262, 65%, 57%)
HSVhsv(262, 65%, 85%)
CMYKcmyk(41%, 65.4%, 0%, 14.9%)
CIE-LABlab(45.12, 52.30, -64.89)
CIE-LCHlch(45.12, 83.34, 308.87°)
OKLaboklab(54.97% 0.0906 -0.1852)
OKLCHoklch(54.97% 0.206 296.1)
XYZxyz(23.9393, 14.6306, 67.1949)
Luminance0.1463 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804BD9 #A4D94B
analogous
#4B5DD9 #804BD9 #C74BD9
triadic
#804BD9 #D9804B #4BD980
tetradic
#804BD9 #D94B5D #A4D94B #4BD9C7
square
#804BD9 #D94B5D #A4D94B #4BD9C7
split-complementary
#804BD9 #D9C74B #5DD94B
monochromatic
#471E8C #6028BF #804BD9 #A47EE4 #C7B0EE

Accessibility & contrast

On white

5.35
#804BD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#804BD9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804BD9
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804BD9#FFFFFF#000000##FFFFFF
##804BD91.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDD
Deuteranopia (green-blind)
#0069D6
Tritanopia (blue-blind)
#696C8C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #804bd9;
/* rgb */ color: rgb(128, 75, 217);
/* oklch */ color: oklch(55.0% 0.206 296.1);
Tailwind
colors: {
  custom: {
    50: '#ab80e6',
    500: '#804bd9',
    950: '#000000',
  },
}
SCSS
$custom: #804bd9;
$custom-light: #ab80e6;
$custom-dark: #000000;
JSON
{
  "hex": "#804bd9",
  "rgb": {
    "r": 128,
    "g": 75,
    "b": 217
  },
  "hsl": {
    "h": 262.394,
    "s": 65.138,
    "l": 57.255
  },
  "oklch": {
    "l": 0.54969,
    "c": 0.20617,
    "h": 296.1
  },
  "luminance": 0.14631
}

Semantic roles & 50–950 ramp

primary
#804BD9
secondary
#C7DDA3
accent
#E840A9
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110A16
muted
#807C84

Preview Lab

Preview with #804BD9

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

Preview Lab → · Contrast checker → · Palette generator →

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