#804DBB#804DBB

#804DBB is a mid, vivid violet. Relative luminance 0.135; OKLCH L 53.1% C 0.168 H 302.4°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#804DBB
RGBrgb(128, 77, 187)
HSLhsl(268, 45%, 52%)
HSVhsv(268, 59%, 73%)
CMYKcmyk(31.6%, 58.8%, 0%, 26.7%)
CIE-LABlab(43.48, 43.57, -50.21)
CIE-LCHlch(43.48, 66.48, 310.95°)
OKLaboklab(53.13% 0.0902 -0.1421)
OKLCHoklch(53.13% 0.168 302.4)
XYZxyz(20.5235, 13.4848, 48.5257)
Luminance0.1348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804DBB #88BB4D
analogous
#4D51BB #804DBB #B74DBB
triadic
#804DBB #BB804D #4DBB80
tetradic
#804DBB #BB4D51 #88BB4D #4DBBB7
square
#804DBB #BB4D51 #88BB4D #4DBBB7
split-complementary
#804DBB #BBB74D #51BB4D
monochromatic
#442766 #623893 #804DBB #A079CC #BFA6DD

Accessibility & contrast

On white

5.68
#804DBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#804DBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804DBB
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804DBB#FFFFFF#000000##FFFFFF
##804DBB1.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1866BF
Deuteranopia (green-blind)
#3066B8
Tritanopia (blue-blind)
#75637D
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #804dbb;
/* rgb */ color: rgb(128, 77, 187);
/* oklch */ color: oklch(53.1% 0.168 302.4);
Tailwind
colors: {
  custom: {
    50: '#a881d0',
    500: '#804dbb',
    950: '#000000',
  },
}
SCSS
$custom: #804dbb;
$custom-light: #a881d0;
$custom-dark: #000000;
JSON
{
  "hex": "#804dbb",
  "rgb": {
    "r": 128,
    "g": 77,
    "b": 187
  },
  "hsl": {
    "h": 267.818,
    "s": 44.715,
    "l": 51.765
  },
  "oklch": {
    "l": 0.53134,
    "c": 0.16827,
    "h": 302.4
  },
  "luminance": 0.13485
}

Semantic roles & 50–950 ramp

primary
#804DBB
secondary
#B4CA9A
accent
#D45399
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #804DBB

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

Preview Lab → · Contrast checker → · Palette generator →

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