#804FBF#804FBF

#804FBF is a mid, vivid violet. Relative luminance 0.139; OKLCH L 53.7% C 0.170 H 301.0°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#804FBF
RGBrgb(128, 79, 191)
HSLhsl(266, 47%, 53%)
HSVhsv(266, 59%, 75%)
CMYKcmyk(33%, 58.6%, 0%, 25.1%)
CIE-LABlab(44.15, 43.48, -51.47)
CIE-LCHlch(44.15, 67.38, 310.19°)
OKLaboklab(53.7% 0.0877 -0.1458)
OKLCHoklch(53.7% 0.17 301)
XYZxyz(21.0998, 13.9426, 50.8597)
Luminance0.1394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804FBF #8EBF4F
analogous
#4F56BF #804FBF #B84FBF
triadic
#804FBF #BF804F #4FBF80
tetradic
#804FBF #BF4F56 #8EBF4F #4FBFB8
square
#804FBF #BF4F56 #8EBF4F #4FBFB8
split-complementary
#804FBF #BFB84F #56BF4F
monochromatic
#45276C #623899 #804FBF #A07CCF #C1A9E0

Accessibility & contrast

On white

5.54
#804FBF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#804FBF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804FBF
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804FBF#FFFFFF#000000##FFFFFF
##804FBF1.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1768C3
Deuteranopia (green-blind)
#2E68BC
Tritanopia (blue-blind)
#73667F
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #804fbf;
/* rgb */ color: rgb(128, 79, 191);
/* oklch */ color: oklch(53.7% 0.170 301.0);
Tailwind
colors: {
  custom: {
    50: '#a982d3',
    500: '#804fbf',
    950: '#000000',
  },
}
SCSS
$custom: #804fbf;
$custom-light: #a982d3;
$custom-dark: #000000;
JSON
{
  "hex": "#804fbf",
  "rgb": {
    "r": 128,
    "g": 79,
    "b": 191
  },
  "hsl": {
    "h": 266.25,
    "s": 46.667,
    "l": 52.941
  },
  "oklch": {
    "l": 0.53702,
    "c": 0.17011,
    "h": 301
  },
  "luminance": 0.13943
}

Semantic roles & 50–950 ramp

primary
#804FBF
secondary
#B8CD9D
accent
#D6519C
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100B14
muted
#7F7C83

Preview Lab

Preview with #804FBF

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

Preview Lab → · Contrast checker → · Palette generator →

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