#804CB7#804CB7

#804CB7 is a mid, vivid violet. Relative luminance 0.132; OKLCH L 52.7% C 0.165 H 303.7°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#804CB7
RGBrgb(128, 76, 183)
HSLhsl(269, 43%, 51%)
HSVhsv(269, 58%, 72%)
CMYKcmyk(30.1%, 58.5%, 0%, 28.2%)
CIE-LABlab(43.03, 43.12, -48.60)
CIE-LCHlch(43.03, 64.97, 311.58°)
OKLaboklab(52.72% 0.0915 -0.1373)
OKLCHoklch(52.72% 0.165 303.7)
XYZxyz(20.0319, 13.1770, 46.2787)
Luminance0.1318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804CB7 #83B74C
analogous
#4C4DB7 #804CB7 #B54CB7
triadic
#804CB7 #B7804C #4CB780
tetradic
#804CB7 #B74C4D #83B74C #4CB7B5
square
#804CB7 #B74C4D #83B74C #4CB7B5
split-complementary
#804CB7 #B7B54C #4DB74C
monochromatic
#432761 #62398D #804CB7 #9F78C9 #BEA3DA

Accessibility & contrast

On white

5.78
#804CB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#804CB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804CB7
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804CB7#FFFFFF#000000##FFFFFF
##804CB71.005.783.645.78
#FFFFFF5.781.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C64BA
Deuteranopia (green-blind)
#3366B5
Tritanopia (blue-blind)
#76617A
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #804cb7;
/* rgb */ color: rgb(128, 76, 183);
/* oklch */ color: oklch(52.7% 0.165 303.7);
Tailwind
colors: {
  custom: {
    50: '#a880cd',
    500: '#804cb7',
    950: '#000000',
  },
}
SCSS
$custom: #804cb7;
$custom-light: #a880cd;
$custom-dark: #000000;
JSON
{
  "hex": "#804cb7",
  "rgb": {
    "r": 128,
    "g": 76,
    "b": 183
  },
  "hsl": {
    "h": 269.159,
    "s": 42.629,
    "l": 50.784
  },
  "oklch": {
    "l": 0.5272,
    "c": 0.16501,
    "h": 303.7
  },
  "luminance": 0.13177
}

Semantic roles & 50–950 ramp

primary
#804CB7
secondary
#B0C798
accent
#D25596
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #804CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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