#804CBF#804CBF

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

Color values

HEX#804CBF
RGBrgb(128, 76, 191)
HSLhsl(267, 47%, 52%)
HSVhsv(267, 60%, 75%)
CMYKcmyk(33%, 60.2%, 0%, 25.1%)
CIE-LABlab(43.54, 45.11, -52.46)
CIE-LCHlch(43.54, 69.19, 310.69°)
OKLaboklab(53.25% 0.0914 -0.1487)
OKLCHoklch(53.25% 0.175 301.6)
XYZxyz(20.8883, 13.5196, 50.7892)
Luminance0.1352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804CBF #8BBF4C
analogous
#4C52BF #804CBF #B94CBF
triadic
#804CBF #BF804C #4CBF80
tetradic
#804CBF #BF4C52 #8BBF4C #4CBFB9
square
#804CBF #BF4C52 #8BBF4C #4CBFB9
split-complementary
#804CBF #BFB94C #52BF4C
monochromatic
#45266B #623698 #804CBF #A079CF #C0A6DF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##804CBF#FFFFFF#000000##FFFFFF
##804CBF1.005.673.705.67
#FFFFFF5.671.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0766C3
Deuteranopia (green-blind)
#2A66BC
Tritanopia (blue-blind)
#73647E
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #804cbf;
/* rgb */ color: rgb(128, 76, 191);
/* oklch */ color: oklch(53.3% 0.174 301.6);
Tailwind
colors: {
  custom: {
    50: '#a980d3',
    500: '#804cbf',
    950: '#000000',
  },
}
SCSS
$custom: #804cbf;
$custom-light: #a980d3;
$custom-dark: #000000;
JSON
{
  "hex": "#804cbf",
  "rgb": {
    "r": 128,
    "g": 76,
    "b": 191
  },
  "hsl": {
    "h": 267.13,
    "s": 47.325,
    "l": 52.353
  },
  "oklch": {
    "l": 0.53253,
    "c": 0.1745,
    "h": 301.6
  },
  "luminance": 0.1352
}

Semantic roles & 50–950 ramp

primary
#804CBF
secondary
#B6CC9A
accent
#D7519A
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #804CBF

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

Preview Lab → · Contrast checker → · Palette generator →

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