#804BDC#804BDC

#804BDC is a mid, highly saturated violet. Relative luminance 0.148; OKLCH L 55.2% C 0.210 H 295.5°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#804BDC
RGBrgb(128, 75, 220)
HSLhsl(262, 67%, 58%)
HSVhsv(262, 66%, 86%)
CMYKcmyk(41.8%, 65.9%, 0%, 13.7%)
CIE-LABlab(45.34, 53.08, -66.25)
CIE-LCHlch(45.34, 84.89, 308.70°)
OKLaboklab(55.2% 0.0902 -0.1892)
OKLCHoklch(55.2% 0.21 295.5)
XYZxyz(24.3330, 14.7881, 69.2686)
Luminance0.1479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804BDC #A7DC4B
analogous
#4B5EDC #804BDC #C84BDC
triadic
#804BDC #DC804B #4BDC80
tetradic
#804BDC #DC4B5E #A7DC4B #4BDCC8
square
#804BDC #DC4B5E #A7DC4B #4BDCC8
split-complementary
#804BDC #DCC84B #5EDC4B
monochromatic
#471C91 #6026C4 #804BDC #A47EE6 #C8B1F0

Accessibility & contrast

On white

5.31
#804BDC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#804BDC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804BDC
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804BDC#FFFFFF#000000##FFFFFF
##804BDC1.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE0
Deuteranopia (green-blind)
#0069D9
Tritanopia (blue-blind)
#686D8D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #804bdc;
/* rgb */ color: rgb(128, 75, 220);
/* oklch */ color: oklch(55.2% 0.210 295.5);
Tailwind
colors: {
  custom: {
    50: '#ab81e8',
    500: '#804bdc',
    950: '#000000',
  },
}
SCSS
$custom: #804bdc;
$custom-light: #ab81e8;
$custom-dark: #000000;
JSON
{
  "hex": "#804bdc",
  "rgb": {
    "r": 128,
    "g": 75,
    "b": 220
  },
  "hsl": {
    "h": 261.931,
    "s": 67.442,
    "l": 57.843
  },
  "oklch": {
    "l": 0.55195,
    "c": 0.20961,
    "h": 295.5
  },
  "luminance": 0.14789
}

Semantic roles & 50–950 ramp

primary
#804BDC
secondary
#C9DEA4
accent
#EA3DAB
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110A16
muted
#807C84

Preview Lab

Preview with #804BDC

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

Preview Lab → · Contrast checker → · Palette generator →

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