#804CB3#804CB3

#804CB3 is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.5% C 0.160 H 304.8°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#804CB3
RGBrgb(128, 76, 179)
HSLhsl(270, 40%, 50%)
HSVhsv(270, 58%, 70%)
CMYKcmyk(28.5%, 57.5%, 0%, 29.8%)
CIE-LABlab(42.78, 42.13, -46.65)
CIE-LCHlch(42.78, 62.86, 312.09°)
OKLaboklab(52.46% 0.0914 -0.1316)
OKLCHoklch(52.46% 0.16 304.8)
XYZxyz(19.6214, 13.0129, 44.1171)
Luminance0.1301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804CB3 #7FB34C
analogous
#4C4CB3 #804CB3 #B34CB3
triadic
#804CB3 #B3804C #4CB380
tetradic
#804CB3 #B34C4C #7FB34C #4CB3B3
square
#804CB3 #B34C4C #7FB34C #4CB3B3
split-complementary
#804CB3 #B3B34C #4CB34C
monochromatic
#43285D #613A88 #804CB3 #9E77C5 #BDA2D7

Accessibility & contrast

On white

5.83
#804CB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#804CB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804CB3
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804CB3#FFFFFF#000000##FFFFFF
##804CB31.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2364B6
Deuteranopia (green-blind)
#3765B1
Tritanopia (blue-blind)
#776078
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #804cb3;
/* rgb */ color: rgb(128, 76, 179);
/* oklch */ color: oklch(52.5% 0.160 304.8);
Tailwind
colors: {
  custom: {
    50: '#a880ca',
    500: '#804cb3',
    950: '#000000',
  },
}
SCSS
$custom: #804cb3;
$custom-light: #a880ca;
$custom-dark: #000000;
JSON
{
  "hex": "#804cb3",
  "rgb": {
    "r": 128,
    "g": 76,
    "b": 179
  },
  "hsl": {
    "h": 270.291,
    "s": 40.392,
    "l": 50
  },
  "oklch": {
    "l": 0.5246,
    "c": 0.16025,
    "h": 304.8
  },
  "luminance": 0.13013
}

Semantic roles & 50–950 ramp

primary
#804CB3
secondary
#ADC496
accent
#D05893
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #804CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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