#804FBE#804FBE

#804FBE is a mid, vivid violet. Relative luminance 0.139; OKLCH L 53.6% C 0.169 H 301.3°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#804FBE
RGBrgb(128, 79, 190)
HSLhsl(266, 46%, 53%)
HSVhsv(266, 58%, 75%)
CMYKcmyk(32.6%, 58.4%, 0%, 25.5%)
CIE-LABlab(44.09, 43.23, -50.99)
CIE-LCHlch(44.09, 66.85, 310.29°)
OKLaboklab(53.64% 0.0877 -0.1444)
OKLCHoklch(53.64% 0.169 301.3)
XYZxyz(20.9901, 13.8988, 50.2821)
Luminance0.1390 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804FBE #8DBE4F
analogous
#4F56BE #804FBE #B74FBE
triadic
#804FBE #BE804F #4FBE80
tetradic
#804FBE #BE4F56 #8DBE4F #4FBEB7
square
#804FBE #BE4F56 #8DBE4F #4FBEB7
split-complementary
#804FBE #BEB74F #56BE4F
monochromatic
#45286B #623898 #804FBE #A07CCF #C1A8DF

Accessibility & contrast

On white

5.56
#804FBE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#804FBE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804FBE
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804FBE#FFFFFF#000000##FFFFFF
##804FBE1.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1968C2
Deuteranopia (green-blind)
#3068BB
Tritanopia (blue-blind)
#73667F
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #804fbe;
/* rgb */ color: rgb(128, 79, 190);
/* oklch */ color: oklch(53.6% 0.169 301.3);
Tailwind
colors: {
  custom: {
    50: '#a982d2',
    500: '#804fbe',
    950: '#000000',
  },
}
SCSS
$custom: #804fbe;
$custom-light: #a982d2;
$custom-dark: #000000;
JSON
{
  "hex": "#804fbe",
  "rgb": {
    "r": 128,
    "g": 79,
    "b": 190
  },
  "hsl": {
    "h": 266.486,
    "s": 46.058,
    "l": 52.745
  },
  "oklch": {
    "l": 0.53635,
    "c": 0.1689,
    "h": 301.3
  },
  "luminance": 0.13899
}

Semantic roles & 50–950 ramp

primary
#804FBE
secondary
#B7CC9C
accent
#D6529C
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100B14
muted
#7F7C83

Preview Lab

Preview with #804FBE

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

Preview Lab → · Contrast checker → · Palette generator →

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