#804CBD#804CBD

#804CBD is a mid, vivid violet. Relative luminance 0.134; OKLCH L 53.1% C 0.172 H 302.1°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#804CBD
RGBrgb(128, 76, 189)
HSLhsl(268, 46%, 52%)
HSVhsv(268, 60%, 74%)
CMYKcmyk(32.3%, 59.8%, 0%, 25.9%)
CIE-LABlab(43.41, 44.61, -51.50)
CIE-LCHlch(43.41, 68.14, 310.90°)
OKLaboklab(53.12% 0.0914 -0.1459)
OKLCHoklch(53.12% 0.172 302.1)
XYZxyz(20.6697, 13.4322, 49.6380)
Luminance0.1343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804CBD #89BD4C
analogous
#4C51BD #804CBD #B94CBD
triadic
#804CBD #BD804C #4CBD80
tetradic
#804CBD #BD4C51 #89BD4C #4CBDB9
square
#804CBD #BD4C51 #89BD4C #4CBDB9
split-complementary
#804CBD #BDB94C #51BD4C
monochromatic
#452668 #623795 #804CBD #A079CD #BFA5DE

Accessibility & contrast

On white

5.70
#804CBD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#804CBD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804CBD
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804CBD#FFFFFF#000000##FFFFFF
##804CBD1.005.703.695.70
#FFFFFF5.701.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F66C1
Deuteranopia (green-blind)
#2C66BA
Tritanopia (blue-blind)
#74637D
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #804cbd;
/* rgb */ color: rgb(128, 76, 189);
/* oklch */ color: oklch(53.1% 0.172 302.1);
Tailwind
colors: {
  custom: {
    50: '#a980d1',
    500: '#804cbd',
    950: '#000000',
  },
}
SCSS
$custom: #804cbd;
$custom-light: #a980d1;
$custom-dark: #000000;
JSON
{
  "hex": "#804cbd",
  "rgb": {
    "r": 128,
    "g": 76,
    "b": 189
  },
  "hsl": {
    "h": 267.611,
    "s": 46.122,
    "l": 51.961
  },
  "oklch": {
    "l": 0.53118,
    "c": 0.17214,
    "h": 302.1
  },
  "luminance": 0.13432
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #804CBD

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

Preview Lab → · Contrast checker → · Palette generator →

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