#804FB8#804FB8

#804FB8 is a mid, vivid violet. Relative luminance 0.136; OKLCH L 53.2% C 0.162 H 302.8°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#804FB8
RGBrgb(128, 79, 184)
HSLhsl(268, 43%, 52%)
HSVhsv(268, 57%, 72%)
CMYKcmyk(30.4%, 57.1%, 0%, 27.8%)
CIE-LABlab(43.71, 41.72, -48.09)
CIE-LCHlch(43.71, 63.66, 310.94°)
OKLaboklab(53.24% 0.0876 -0.1358)
OKLCHoklch(53.24% 0.162 302.8)
XYZxyz(20.3478, 13.6419, 46.8993)
Luminance0.1364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804FB8 #87B84F
analogous
#4F53B8 #804FB8 #B54FB8
triadic
#804FB8 #B8804F #4FB880
tetradic
#804FB8 #B84F53 #87B84F #4FB8B5
square
#804FB8 #B84F53 #87B84F #4FB8B5
split-complementary
#804FB8 #B8B54F #53B84F
monochromatic
#442864 #623A90 #804FB8 #9F7BCA #BFA6DB

Accessibility & contrast

On white

5.63
#804FB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#804FB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804FB8
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804FB8#FFFFFF#000000##FFFFFF
##804FB81.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2366BB
Deuteranopia (green-blind)
#3667B6
Tritanopia (blue-blind)
#75647C
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #804fb8;
/* rgb */ color: rgb(128, 79, 184);
/* oklch */ color: oklch(53.2% 0.162 302.8);
Tailwind
colors: {
  custom: {
    50: '#a882ce',
    500: '#804fb8',
    950: '#000000',
  },
}
SCSS
$custom: #804fb8;
$custom-light: #a882ce;
$custom-dark: #000000;
JSON
{
  "hex": "#804fb8",
  "rgb": {
    "r": 128,
    "g": 79,
    "b": 184
  },
  "hsl": {
    "h": 268,
    "s": 42.51,
    "l": 51.569
  },
  "oklch": {
    "l": 0.53242,
    "c": 0.16166,
    "h": 302.8
  },
  "luminance": 0.13642
}

Semantic roles & 50–950 ramp

primary
#804FB8
secondary
#B3C89A
accent
#D25698
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100B14
muted
#7F7C82

Preview Lab

Preview with #804FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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