#804CBE#804CBE

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

Color values

HEX#804CBE
RGBrgb(128, 76, 190)
HSLhsl(267, 47%, 52%)
HSVhsv(267, 60%, 75%)
CMYKcmyk(32.6%, 60%, 0%, 25.5%)
CIE-LABlab(43.47, 44.86, -51.98)
CIE-LCHlch(43.47, 68.66, 310.80°)
OKLaboklab(53.19% 0.0914 -0.1473)
OKLCHoklch(53.19% 0.173 301.8)
XYZxyz(20.7786, 13.4757, 50.2116)
Luminance0.1348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804CBE #8ABE4C
analogous
#4C51BE #804CBE #B94CBE
triadic
#804CBE #BE804C #4CBE80
tetradic
#804CBE #BE4C51 #8ABE4C #4CBEB9
square
#804CBE #BE4C51 #8ABE4C #4CBEB9
split-complementary
#804CBE #BEB94C #51BE4C
monochromatic
#452669 #623796 #804CBE #A079CE #C0A6DF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##804CBE#FFFFFF#000000##FFFFFF
##804CBE1.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)
#0B66C2
Deuteranopia (green-blind)
#2B66BB
Tritanopia (blue-blind)
#74647E
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #804cbe;
/* rgb */ color: rgb(128, 76, 190);
/* oklch */ color: oklch(53.2% 0.173 301.8);
Tailwind
colors: {
  custom: {
    50: '#a980d2',
    500: '#804cbe',
    950: '#000000',
  },
}
SCSS
$custom: #804cbe;
$custom-light: #a980d2;
$custom-dark: #000000;
JSON
{
  "hex": "#804cbe",
  "rgb": {
    "r": 128,
    "g": 76,
    "b": 190
  },
  "hsl": {
    "h": 267.368,
    "s": 46.721,
    "l": 52.157
  },
  "oklch": {
    "l": 0.53185,
    "c": 0.17332,
    "h": 301.8
  },
  "luminance": 0.13476
}

Semantic roles & 50–950 ramp

primary
#804CBE
secondary
#B5CC9A
accent
#D6519A
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #804CBE

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

Preview Lab → · Contrast checker → · Palette generator →

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