#804BB6#804BB6

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

Color values

HEX#804BB6
RGBrgb(128, 75, 182)
HSLhsl(270, 42%, 50%)
HSVhsv(270, 59%, 71%)
CMYKcmyk(29.7%, 58.8%, 0%, 28.6%)
CIE-LABlab(42.76, 43.42, -48.44)
CIE-LCHlch(42.76, 65.05, 311.87°)
OKLaboklab(52.5% 0.0927 -0.1369)
OKLCHoklch(52.5% 0.165 304.1)
XYZxyz(19.8598, 12.9988, 45.7097)
Luminance0.1300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804BB6 #81B64B
analogous
#4B4BB6 #804BB6 #B54BB6
triadic
#804BB6 #B6804B #4BB680
tetradic
#804BB6 #B64B4B #81B64B #4BB6B5
square
#804BB6 #B64B4B #81B64B #4BB6B5
split-complementary
#804BB6 #B6B54B #4BB64B
monochromatic
#432760 #62388B #804BB6 #9F77C8 #BDA2D9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##804BB6#FFFFFF#000000##FFFFFF
##804BB61.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)
#1B64B9
Deuteranopia (green-blind)
#3365B4
Tritanopia (blue-blind)
#766079
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #804bb6;
/* rgb */ color: rgb(128, 75, 182);
/* oklch */ color: oklch(52.5% 0.165 304.1);
Tailwind
colors: {
  custom: {
    50: '#a880cc',
    500: '#804bb6',
    950: '#000000',
  },
}
SCSS
$custom: #804bb6;
$custom-light: #a880cc;
$custom-dark: #000000;
JSON
{
  "hex": "#804bb6",
  "rgb": {
    "r": 128,
    "g": 75,
    "b": 182
  },
  "hsl": {
    "h": 269.72,
    "s": 42.292,
    "l": 50.392
  },
  "oklch": {
    "l": 0.52504,
    "c": 0.16533,
    "h": 304.1
  },
  "luminance": 0.12999
}

Semantic roles & 50–950 ramp

primary
#804BB6
secondary
#AFC697
accent
#D25694
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #804BB6

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

Preview Lab → · Contrast checker → · Palette generator →

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