#804BB0#804BB0

#804BB0 is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.1% C 0.158 H 305.8°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#804BB0
RGBrgb(128, 75, 176)
HSLhsl(271, 40%, 49%)
HSVhsv(271, 57%, 69%)
CMYKcmyk(27.3%, 57.4%, 0%, 31%)
CIE-LABlab(42.39, 41.95, -45.50)
CIE-LCHlch(42.39, 61.89, 312.67°)
OKLaboklab(52.12% 0.0927 -0.1283)
OKLCHoklch(52.12% 0.158 305.8)
XYZxyz(19.2530, 12.7561, 42.5138)
Luminance0.1276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804BB0 #7BB04B
analogous
#4E4BB0 #804BB0 #B04BAE
triadic
#804BB0 #B0804B #4BB080
tetradic
#804BB0 #B04E4B #7BB04B #4BAEB0
square
#804BB0 #B04E4B #7BB04B #4BAEB0
split-complementary
#804BB0 #AEB04B #4BB04E
monochromatic
#42265A #613985 #804BB0 #9E74C4 #BC9FD6

Accessibility & contrast

On white

5.91
#804BB0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#804BB0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804BB0
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804BB0#FFFFFF#000000##FFFFFF
##804BB01.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2462B3
Deuteranopia (green-blind)
#3964AE
Tritanopia (blue-blind)
#785E76
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #804bb0;
/* rgb */ color: rgb(128, 75, 176);
/* oklch */ color: oklch(52.1% 0.158 305.8);
Tailwind
colors: {
  custom: {
    50: '#a87fc8',
    500: '#804bb0',
    950: '#000000',
  },
}
SCSS
$custom: #804bb0;
$custom-light: #a87fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#804bb0",
  "rgb": {
    "r": 128,
    "g": 75,
    "b": 176
  },
  "hsl": {
    "h": 271.485,
    "s": 40.239,
    "l": 49.216
  },
  "oklch": {
    "l": 0.52116,
    "c": 0.15823,
    "h": 305.8
  },
  "luminance": 0.12756
}

Semantic roles & 50–950 ramp

primary
#804BB0
secondary
#AAC394
accent
#D05891
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #804BB0

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

Preview Lab → · Contrast checker → · Palette generator →

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