#804DBE#804DBE

#804DBE is a mid, vivid violet. Relative luminance 0.136; OKLCH L 53.3% C 0.172 H 301.6°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#804DBE
RGBrgb(128, 77, 190)
HSLhsl(267, 47%, 52%)
HSVhsv(267, 59%, 75%)
CMYKcmyk(32.6%, 59.5%, 0%, 25.5%)
CIE-LABlab(43.68, 44.32, -51.65)
CIE-LCHlch(43.68, 68.06, 310.63°)
OKLaboklab(53.33% 0.0901 -0.1463)
OKLCHoklch(53.33% 0.172 301.6)
XYZxyz(20.8480, 13.6146, 50.2347)
Luminance0.1361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804DBE #8BBE4D
analogous
#4D52BE #804DBE #B94DBE
triadic
#804DBE #BE804D #4DBE80
tetradic
#804DBE #BE4D52 #8BBE4D #4DBEB9
square
#804DBE #BE4D52 #8BBE4D #4DBEB9
split-complementary
#804DBE #BEB94D #52BE4D
monochromatic
#45276A #623797 #804DBE #A07ACE #C0A7DF

Accessibility & contrast

On white

5.64
#804DBE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#804DBE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804DBE
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804DBE#FFFFFF#000000##FFFFFF
##804DBE1.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1166C2
Deuteranopia (green-blind)
#2D67BB
Tritanopia (blue-blind)
#74647E
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #804dbe;
/* rgb */ color: rgb(128, 77, 190);
/* oklch */ color: oklch(53.3% 0.172 301.6);
Tailwind
colors: {
  custom: {
    50: '#a981d2',
    500: '#804dbe',
    950: '#000000',
  },
}
SCSS
$custom: #804dbe;
$custom-light: #a981d2;
$custom-dark: #000000;
JSON
{
  "hex": "#804dbe",
  "rgb": {
    "r": 128,
    "g": 77,
    "b": 190
  },
  "hsl": {
    "h": 267.08,
    "s": 46.502,
    "l": 52.353
  },
  "oklch": {
    "l": 0.53334,
    "c": 0.17186,
    "h": 301.6
  },
  "luminance": 0.13615
}

Semantic roles & 50–950 ramp

primary
#804DBE
secondary
#B6CC9B
accent
#D6529A
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #804DBE

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

Preview Lab → · Contrast checker → · Palette generator →

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