#804BD5#804BD5

#804BD5 is a mid, highly saturated violet. Relative luminance 0.144; OKLCH L 54.7% C 0.202 H 296.8°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#804BD5
RGBrgb(128, 75, 213)
HSLhsl(263, 62%, 56%)
HSVhsv(263, 65%, 84%)
CMYKcmyk(39.9%, 64.8%, 0%, 16.5%)
CIE-LABlab(44.84, 51.26, -63.07)
CIE-LCHlch(44.84, 81.27, 309.10°)
OKLaboklab(54.67% 0.091 -0.1799)
OKLCHoklch(54.67% 0.202 296.8)
XYZxyz(23.4253, 14.4250, 64.4880)
Luminance0.1442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804BD5 #A0D54B
analogous
#4B5BD5 #804BD5 #C54BD5
triadic
#804BD5 #D5804B #4BD580
tetradic
#804BD5 #D54B5B #A0D54B #4BD5C5
square
#804BD5 #D54B5B #A0D54B #4BD5C5
split-complementary
#804BD5 #D5C54B #5BD54B
monochromatic
#471F86 #612BB8 #804BD5 #A37DE1 #C6AEEC

Accessibility & contrast

On white

5.41
#804BD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#804BD5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804BD5
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804BD5#FFFFFF#000000##FFFFFF
##804BD51.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD9
Deuteranopia (green-blind)
#0068D2
Tritanopia (blue-blind)
#6B6B89
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #804bd5;
/* rgb */ color: rgb(128, 75, 213);
/* oklch */ color: oklch(54.7% 0.202 296.8);
Tailwind
colors: {
  custom: {
    50: '#ab80e3',
    500: '#804bd5',
    950: '#000000',
  },
}
SCSS
$custom: #804bd5;
$custom-light: #ab80e3;
$custom-dark: #000000;
JSON
{
  "hex": "#804bd5",
  "rgb": {
    "r": 128,
    "g": 75,
    "b": 213
  },
  "hsl": {
    "h": 263.043,
    "s": 62.162,
    "l": 56.471
  },
  "oklch": {
    "l": 0.54671,
    "c": 0.20157,
    "h": 296.8
  },
  "luminance": 0.14425
}

Semantic roles & 50–950 ramp

primary
#804BD5
secondary
#C4DAA2
accent
#E543A7
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110A15
muted
#807C84

Preview Lab

Preview with #804BD5

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

Preview Lab → · Contrast checker → · Palette generator →

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