#804BD2#804BD2

#804BD2 is a mid, vivid violet. Relative luminance 0.143; OKLCH L 54.4% C 0.198 H 297.4°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#804BD2
RGBrgb(128, 75, 210)
HSLhsl(264, 60%, 56%)
HSVhsv(264, 64%, 82%)
CMYKcmyk(39%, 64.3%, 0%, 17.6%)
CIE-LABlab(44.62, 50.49, -61.69)
CIE-LCHlch(44.62, 79.72, 309.30°)
OKLaboklab(54.45% 0.0913 -0.1758)
OKLCHoklch(54.45% 0.198 297.4)
XYZxyz(23.0480, 14.2741, 62.5011)
Luminance0.1427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804BD2 #9DD24B
analogous
#4B59D2 #804BD2 #C44BD2
triadic
#804BD2 #D2804B #4BD280
tetradic
#804BD2 #D24B59 #9DD24B #4BD2C4
square
#804BD2 #D24B59 #9DD24B #4BD2C4
split-complementary
#804BD2 #D2C44B #59D24B
monochromatic
#472182 #612DB3 #804BD2 #A37CDE #C5ADEA

Accessibility & contrast

On white

5.45
#804BD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#804BD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804BD2
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804BD2#FFFFFF#000000##FFFFFF
##804BD21.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD6
Deuteranopia (green-blind)
#0068CF
Tritanopia (blue-blind)
#6C6A88
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #804bd2;
/* rgb */ color: rgb(128, 75, 210);
/* oklch */ color: oklch(54.4% 0.198 297.4);
Tailwind
colors: {
  custom: {
    50: '#ab80e1',
    500: '#804bd2',
    950: '#000000',
  },
}
SCSS
$custom: #804bd2;
$custom-light: #ab80e1;
$custom-dark: #000000;
JSON
{
  "hex": "#804bd2",
  "rgb": {
    "r": 128,
    "g": 75,
    "b": 210
  },
  "hsl": {
    "h": 263.556,
    "s": 60,
    "l": 55.882
  },
  "oklch": {
    "l": 0.5445,
    "c": 0.19811,
    "h": 297.4
  },
  "luminance": 0.14274
}

Semantic roles & 50–950 ramp

primary
#804BD2
secondary
#C2D8A0
accent
#E345A5
background
#FAF8FD
surface
#F5EFFB
border
#CFCAD4
text
#110A15
muted
#807C83

Preview Lab

Preview with #804BD2

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

Preview Lab → · Contrast checker → · Palette generator →

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