#804FB2#804FB2

#804FB2 is a mid, vivid violet. Relative luminance 0.134; OKLCH L 52.9% C 0.154 H 304.5°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#804FB2
RGBrgb(128, 79, 178)
HSLhsl(270, 39%, 50%)
HSVhsv(270, 56%, 70%)
CMYKcmyk(28.1%, 55.6%, 0%, 30.2%)
CIE-LABlab(43.35, 40.23, -45.14)
CIE-LCHlch(43.35, 60.47, 311.70°)
OKLaboklab(52.86% 0.0874 -0.1272)
OKLCHoklch(52.86% 0.154 304.5)
XYZxyz(19.7322, 13.3956, 43.6569)
Luminance0.1340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804FB2 #81B24F
analogous
#4F4FB2 #804FB2 #B14FB2
triadic
#804FB2 #B2804F #4FB280
tetradic
#804FB2 #B24F4F #81B24F #4FB2B1
square
#804FB2 #B24F4F #81B24F #4FB2B1
split-complementary
#804FB2 #B2B14F #4FB24F
monochromatic
#43295E #623C88 #804FB2 #9F7AC5 #BDA4D7

Accessibility & contrast

On white

5.71
#804FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#804FB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804FB2
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804FB2#FFFFFF#000000##FFFFFF
##804FB21.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B65B5
Deuteranopia (green-blind)
#3C66B0
Tritanopia (blue-blind)
#776279
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #804fb2;
/* rgb */ color: rgb(128, 79, 178);
/* oklch */ color: oklch(52.9% 0.154 304.5);
Tailwind
colors: {
  custom: {
    50: '#a882c9',
    500: '#804fb2',
    950: '#000000',
  },
}
SCSS
$custom: #804fb2;
$custom-light: #a882c9;
$custom-dark: #000000;
JSON
{
  "hex": "#804fb2",
  "rgb": {
    "r": 128,
    "g": 79,
    "b": 178
  },
  "hsl": {
    "h": 269.697,
    "s": 39.13,
    "l": 50.392
  },
  "oklch": {
    "l": 0.5286,
    "c": 0.15438,
    "h": 304.5
  },
  "luminance": 0.13396
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #804FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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