#804FB1#804FB1

#804FB1 is a mid, vivid violet. Relative luminance 0.134; OKLCH L 52.8% C 0.153 H 304.8°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#804FB1
RGBrgb(128, 79, 177)
HSLhsl(270, 39%, 50%)
HSVhsv(270, 55%, 69%)
CMYKcmyk(27.7%, 55.4%, 0%, 30.6%)
CIE-LABlab(43.29, 39.98, -44.65)
CIE-LCHlch(43.29, 59.94, 311.84°)
OKLaboklab(52.8% 0.0874 -0.1258)
OKLCHoklch(52.8% 0.153 304.8)
XYZxyz(19.6322, 13.3556, 43.1301)
Luminance0.1336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804FB1 #80B14F
analogous
#4F4FB1 #804FB1 #B14FB1
triadic
#804FB1 #B1804F #4FB180
tetradic
#804FB1 #B14F4F #80B14F #4FB1B1
square
#804FB1 #B14F4F #80B14F #4FB1B1
split-complementary
#804FB1 #B1B14F #4FB14F
monochromatic
#43295D #613C87 #804FB1 #9F79C4 #BDA4D7

Accessibility & contrast

On white

5.72
#804FB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#804FB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804FB1
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804FB1#FFFFFF#000000##FFFFFF
##804FB11.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C65B4
Deuteranopia (green-blind)
#3D66AF
Tritanopia (blue-blind)
#786178
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #804fb1;
/* rgb */ color: rgb(128, 79, 177);
/* oklch */ color: oklch(52.8% 0.153 304.8);
Tailwind
colors: {
  custom: {
    50: '#a882c9',
    500: '#804fb1',
    950: '#000000',
  },
}
SCSS
$custom: #804fb1;
$custom-light: #a882c9;
$custom-dark: #000000;
JSON
{
  "hex": "#804fb1",
  "rgb": {
    "r": 128,
    "g": 79,
    "b": 177
  },
  "hsl": {
    "h": 270,
    "s": 38.583,
    "l": 50.196
  },
  "oklch": {
    "l": 0.52798,
    "c": 0.15317,
    "h": 304.8
  },
  "luminance": 0.13355
}

Semantic roles & 50–950 ramp

primary
#804FB1
secondary
#AEC498
accent
#CF5994
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #804FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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