#804DB3#804DB3

#804DB3 is a mid, vivid violet. Relative luminance 0.132; OKLCH L 52.6% C 0.159 H 304.6°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#804DB3
RGBrgb(128, 77, 179)
HSLhsl(270, 40%, 50%)
HSVhsv(270, 57%, 70%)
CMYKcmyk(28.5%, 57%, 0%, 29.8%)
CIE-LABlab(42.99, 41.58, -46.31)
CIE-LCHlch(42.99, 62.24, 311.92°)
OKLaboklab(52.61% 0.0901 -0.1306)
OKLCHoklch(52.61% 0.159 304.6)
XYZxyz(19.6909, 13.1517, 44.1403)
Luminance0.1315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804DB3 #80B34D
analogous
#4D4DB3 #804DB3 #B34DB3
triadic
#804DB3 #B3804D #4DB380
tetradic
#804DB3 #B34D4D #80B34D #4DB3B3
square
#804DB3 #B34D4D #80B34D #4DB3B3
split-complementary
#804DB3 #B3B34D #4DB34D
monochromatic
#43285E #613A89 #804DB3 #9F78C5 #BDA3D8

Accessibility & contrast

On white

5.78
#804DB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#804DB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804DB3
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804DB3#FFFFFF#000000##FFFFFF
##804DB31.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2564B6
Deuteranopia (green-blind)
#3966B1
Tritanopia (blue-blind)
#776178
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #804db3;
/* rgb */ color: rgb(128, 77, 179);
/* oklch */ color: oklch(52.6% 0.159 304.6);
Tailwind
colors: {
  custom: {
    50: '#a881ca',
    500: '#804db3',
    950: '#000000',
  },
}
SCSS
$custom: #804db3;
$custom-light: #a881ca;
$custom-dark: #000000;
JSON
{
  "hex": "#804db3",
  "rgb": {
    "r": 128,
    "g": 77,
    "b": 179
  },
  "hsl": {
    "h": 270,
    "s": 40.157,
    "l": 50.196
  },
  "oklch": {
    "l": 0.52613,
    "c": 0.15871,
    "h": 304.6
  },
  "luminance": 0.13152
}

Semantic roles & 50–950 ramp

primary
#804DB3
secondary
#AEC597
accent
#D05894
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #804DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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