#804FB4#804FB4

#804FB4 is a mid, vivid violet. Relative luminance 0.135; OKLCH L 53.0% C 0.157 H 303.9°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#804FB4
RGBrgb(128, 79, 180)
HSLhsl(269, 40%, 51%)
HSVhsv(269, 56%, 71%)
CMYKcmyk(28.9%, 56.1%, 0%, 29.4%)
CIE-LABlab(43.47, 40.72, -46.13)
CIE-LCHlch(43.47, 61.53, 311.44°)
OKLaboklab(52.99% 0.0875 -0.1301)
OKLCHoklch(52.99% 0.157 303.9)
XYZxyz(19.9345, 13.4765, 44.7222)
Luminance0.1348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804FB4 #83B44F
analogous
#4F50B4 #804FB4 #B24FB4
triadic
#804FB4 #B4804F #4FB480
tetradic
#804FB4 #B44F50 #83B44F #4FB4B2
square
#804FB4 #B44F50 #83B44F #4FB4B2
split-complementary
#804FB4 #B4B24F #50B44F
monochromatic
#432960 #623B8B #804FB4 #9F7AC6 #BEA5D9

Accessibility & contrast

On white

5.68
#804FB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#804FB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804FB4
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804FB4#FFFFFF#000000##FFFFFF
##804FB41.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2865B7
Deuteranopia (green-blind)
#3A67B2
Tritanopia (blue-blind)
#77627A
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #804fb4;
/* rgb */ color: rgb(128, 79, 180);
/* oklch */ color: oklch(53.0% 0.157 303.9);
Tailwind
colors: {
  custom: {
    50: '#a882cb',
    500: '#804fb4',
    950: '#000000',
  },
}
SCSS
$custom: #804fb4;
$custom-light: #a882cb;
$custom-dark: #000000;
JSON
{
  "hex": "#804fb4",
  "rgb": {
    "r": 128,
    "g": 79,
    "b": 180
  },
  "hsl": {
    "h": 269.109,
    "s": 40.239,
    "l": 50.784
  },
  "oklch": {
    "l": 0.52986,
    "c": 0.15682,
    "h": 303.9
  },
  "luminance": 0.13476
}

Semantic roles & 50–950 ramp

primary
#804FB4
secondary
#B0C699
accent
#D05896
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #804FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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