#804EB7#804EB7

#804EB7 is a mid, vivid violet. Relative luminance 0.135; OKLCH L 53.0% C 0.162 H 303.3°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#804EB7
RGBrgb(128, 78, 183)
HSLhsl(269, 42%, 51%)
HSVhsv(269, 57%, 72%)
CMYKcmyk(30.1%, 57.4%, 0%, 28.2%)
CIE-LABlab(43.44, 42.02, -47.93)
CIE-LCHlch(43.44, 63.75, 311.24°)
OKLaboklab(53.02% 0.0889 -0.1354)
OKLCHoklch(53.02% 0.162 303.3)
XYZxyz(20.1718, 13.4569, 46.3253)
Luminance0.1346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804EB7 #85B74E
analogous
#4E50B7 #804EB7 #B44EB7
triadic
#804EB7 #B7804E #4EB780
tetradic
#804EB7 #B74E50 #85B74E #4EB7B4
square
#804EB7 #B74E50 #85B74E #4EB7B4
split-complementary
#804EB7 #B7B44E #50B74E
monochromatic
#442863 #623A8E #804EB7 #9F7AC9 #BEA5DA

Accessibility & contrast

On white

5.69
#804EB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#804EB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804EB7
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804EB7#FFFFFF#000000##FFFFFF
##804EB71.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2266BA
Deuteranopia (green-blind)
#3666B5
Tritanopia (blue-blind)
#76637B
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #804eb7;
/* rgb */ color: rgb(128, 78, 183);
/* oklch */ color: oklch(53.0% 0.162 303.3);
Tailwind
colors: {
  custom: {
    50: '#a882cd',
    500: '#804eb7',
    950: '#000000',
  },
}
SCSS
$custom: #804eb7;
$custom-light: #a882cd;
$custom-dark: #000000;
JSON
{
  "hex": "#804eb7",
  "rgb": {
    "r": 128,
    "g": 78,
    "b": 183
  },
  "hsl": {
    "h": 268.571,
    "s": 42.169,
    "l": 51.176
  },
  "oklch": {
    "l": 0.53024,
    "c": 0.16198,
    "h": 303.3
  },
  "luminance": 0.13457
}

Semantic roles & 50–950 ramp

primary
#804EB7
secondary
#B2C899
accent
#D25697
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #804EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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