#804FBA#804FBA

#804FBA is a mid, vivid violet. Relative luminance 0.137; OKLCH L 53.4% C 0.164 H 302.3°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#804FBA
RGBrgb(128, 79, 186)
HSLhsl(267, 44%, 52%)
HSVhsv(267, 58%, 73%)
CMYKcmyk(31.2%, 57.5%, 0%, 27.1%)
CIE-LABlab(43.84, 42.22, -49.06)
CIE-LCHlch(43.84, 64.72, 310.71°)
OKLaboklab(53.37% 0.0876 -0.1387)
OKLCHoklch(53.37% 0.164 302.3)
XYZxyz(20.5590, 13.7263, 48.0112)
Luminance0.1373 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804FBA #89BA4F
analogous
#4F54BA #804FBA #B64FBA
triadic
#804FBA #BA804F #4FBA80
tetradic
#804FBA #BA4F54 #89BA4F #4FBAB6
square
#804FBA #BA4F54 #89BA4F #4FBAB6
split-complementary
#804FBA #BAB64F #54BA4F
monochromatic
#452866 #623992 #804FBA #A07BCB #BFA7DC

Accessibility & contrast

On white

5.61
#804FBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#804FBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804FBA
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804FBA#FFFFFF#000000##FFFFFF
##804FBA1.005.613.755.61
#FFFFFF5.611.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2067BE
Deuteranopia (green-blind)
#3467B8
Tritanopia (blue-blind)
#75647D
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #804fba;
/* rgb */ color: rgb(128, 79, 186);
/* oklch */ color: oklch(53.4% 0.164 302.3);
Tailwind
colors: {
  custom: {
    50: '#a882cf',
    500: '#804fba',
    950: '#000000',
  },
}
SCSS
$custom: #804fba;
$custom-light: #a882cf;
$custom-dark: #000000;
JSON
{
  "hex": "#804fba",
  "rgb": {
    "r": 128,
    "g": 79,
    "b": 186
  },
  "hsl": {
    "h": 267.477,
    "s": 43.673,
    "l": 51.961
  },
  "oklch": {
    "l": 0.53372,
    "c": 0.16407,
    "h": 302.3
  },
  "luminance": 0.13726
}

Semantic roles & 50–950 ramp

primary
#804FBA
secondary
#B4CA9B
accent
#D35499
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100B14
muted
#7F7C82

Preview Lab

Preview with #804FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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