#804DBC#804DBC

#804DBC is a mid, vivid violet. Relative luminance 0.135; OKLCH L 53.2% C 0.169 H 302.1°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#804DBC
RGBrgb(128, 77, 188)
HSLhsl(268, 45%, 52%)
HSVhsv(268, 59%, 74%)
CMYKcmyk(31.9%, 59%, 0%, 26.3%)
CIE-LABlab(43.55, 43.82, -50.69)
CIE-LCHlch(43.55, 67.00, 310.84°)
OKLaboklab(53.2% 0.0902 -0.1435)
OKLCHoklch(53.2% 0.169 302.1)
XYZxyz(20.6310, 13.5278, 49.0914)
Luminance0.1353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804DBC #89BC4D
analogous
#4D52BC #804DBC #B84DBC
triadic
#804DBC #BC804D #4DBC80
tetradic
#804DBC #BC4D52 #89BC4D #4DBCB8
square
#804DBC #BC4D52 #89BC4D #4DBCB8
split-complementary
#804DBC #BCB84D #52BC4D
monochromatic
#452768 #623894 #804DBC #A079CD #BFA6DD

Accessibility & contrast

On white

5.67
#804DBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#804DBC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804DBC
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804DBC#FFFFFF#000000##FFFFFF
##804DBC1.005.673.715.67
#FFFFFF5.671.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1666C0
Deuteranopia (green-blind)
#2F66B9
Tritanopia (blue-blind)
#74647D
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #804dbc;
/* rgb */ color: rgb(128, 77, 188);
/* oklch */ color: oklch(53.2% 0.169 302.1);
Tailwind
colors: {
  custom: {
    50: '#a981d1',
    500: '#804dbc',
    950: '#000000',
  },
}
SCSS
$custom: #804dbc;
$custom-light: #a981d1;
$custom-dark: #000000;
JSON
{
  "hex": "#804dbc",
  "rgb": {
    "r": 128,
    "g": 77,
    "b": 188
  },
  "hsl": {
    "h": 267.568,
    "s": 45.306,
    "l": 51.961
  },
  "oklch": {
    "l": 0.532,
    "c": 0.16947,
    "h": 302.1
  },
  "luminance": 0.13528
}

Semantic roles & 50–950 ramp

primary
#804DBC
secondary
#B4CB9A
accent
#D55399
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #804DBC

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

Preview Lab → · Contrast checker → · Palette generator →

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