#804BB3#804BB3

#804BB3 is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.3% C 0.162 H 305.0°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#804BB3
RGBrgb(128, 75, 179)
HSLhsl(271, 41%, 50%)
HSVhsv(271, 58%, 70%)
CMYKcmyk(28.5%, 58.1%, 0%, 29.8%)
CIE-LABlab(42.58, 42.68, -46.98)
CIE-LCHlch(42.58, 63.47, 312.26°)
OKLaboklab(52.31% 0.0927 -0.1326)
OKLCHoklch(52.31% 0.162 305)
XYZxyz(19.5531, 12.8761, 44.0943)
Luminance0.1288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804BB3 #7EB34B
analogous
#4C4BB3 #804BB3 #B34BB2
triadic
#804BB3 #B3804B #4BB380
tetradic
#804BB3 #B34C4B #7EB34B #4BB2B3
square
#804BB3 #B34C4B #7EB34B #4BB2B3
split-complementary
#804BB3 #B2B34B #4BB34C
monochromatic
#42275D #613988 #804BB3 #9E76C5 #BDA1D8

Accessibility & contrast

On white

5.87
#804BB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#804BB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804BB3
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804BB3#FFFFFF#000000##FFFFFF
##804BB31.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2063B6
Deuteranopia (green-blind)
#3665B1
Tritanopia (blue-blind)
#775F78
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #804bb3;
/* rgb */ color: rgb(128, 75, 179);
/* oklch */ color: oklch(52.3% 0.162 305.0);
Tailwind
colors: {
  custom: {
    50: '#a87fca',
    500: '#804bb3',
    950: '#000000',
  },
}
SCSS
$custom: #804bb3;
$custom-light: #a87fca;
$custom-dark: #000000;
JSON
{
  "hex": "#804bb3",
  "rgb": {
    "r": 128,
    "g": 75,
    "b": 179
  },
  "hsl": {
    "h": 270.577,
    "s": 40.945,
    "l": 49.804
  },
  "oklch": {
    "l": 0.52309,
    "c": 0.16179,
    "h": 305
  },
  "luminance": 0.12876
}

Semantic roles & 50–950 ramp

primary
#804BB3
secondary
#ACC495
accent
#D15793
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #804BB3

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

Preview Lab → · Contrast checker → · Palette generator →

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