#804FB5#804FB5

#804FB5 is a mid, vivid violet. Relative luminance 0.135; OKLCH L 53.0% C 0.158 H 303.6°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#804FB5
RGBrgb(128, 79, 181)
HSLhsl(269, 41%, 51%)
HSVhsv(269, 56%, 71%)
CMYKcmyk(29.3%, 56.4%, 0%, 29%)
CIE-LABlab(43.53, 40.97, -46.62)
CIE-LCHlch(43.53, 62.06, 311.31°)
OKLaboklab(53.05% 0.0876 -0.1315)
OKLCHoklch(53.05% 0.158 303.6)
XYZxyz(20.0367, 13.5174, 45.2606)
Luminance0.1352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804FB5 #84B54F
analogous
#4F51B5 #804FB5 #B34FB5
triadic
#804FB5 #B5804F #4FB580
tetradic
#804FB5 #B54F51 #84B54F #4FB5B3
square
#804FB5 #B54F51 #84B54F #4FB5B3
split-complementary
#804FB5 #B5B34F #51B54F
monochromatic
#442961 #623B8C #804FB5 #9F7AC7 #BEA5D9

Accessibility & contrast

On white

5.67
#804FB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#804FB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804FB5
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804FB5#FFFFFF#000000##FFFFFF
##804FB51.005.673.705.67
#FFFFFF5.671.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2766B8
Deuteranopia (green-blind)
#3967B3
Tritanopia (blue-blind)
#76637A
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #804fb5;
/* rgb */ color: rgb(128, 79, 181);
/* oklch */ color: oklch(53.0% 0.158 303.6);
Tailwind
colors: {
  custom: {
    50: '#a882cc',
    500: '#804fb5',
    950: '#000000',
  },
}
SCSS
$custom: #804fb5;
$custom-light: #a882cc;
$custom-dark: #000000;
JSON
{
  "hex": "#804fb5",
  "rgb": {
    "r": 128,
    "g": 79,
    "b": 181
  },
  "hsl": {
    "h": 268.824,
    "s": 40.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.5305,
    "c": 0.15802,
    "h": 303.6
  },
  "luminance": 0.13517
}

Semantic roles & 50–950 ramp

primary
#804FB5
secondary
#B1C699
accent
#D15796
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #804FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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