#804BA6#804BA6

#804BA6 is a mid, vivid violet. Relative luminance 0.124; OKLCH L 51.5% C 0.146 H 309.1°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#804BA6
RGBrgb(128, 75, 166)
HSLhsl(275, 38%, 47%)
HSVhsv(275, 55%, 65%)
CMYKcmyk(22.9%, 54.8%, 0%, 34.9%)
CIE-LABlab(41.81, 39.55, -40.52)
CIE-LCHlch(41.81, 56.62, 314.31°)
OKLaboklab(51.5% 0.0922 -0.1137)
OKLCHoklch(51.5% 0.146 309.1)
XYZxyz(18.2998, 12.3748, 37.4935)
Luminance0.1237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804BA6 #71A64B
analogous
#534BA6 #804BA6 #A64B9F
triadic
#804BA6 #A6804B #4BA680
tetradic
#804BA6 #A6534B #71A64B #4B9FA6
square
#804BA6 #A6534B #71A64B #4B9FA6
split-complementary
#804BA6 #9FA64B #4BA653
monochromatic
#3F2552 #5F387C #804BA6 #9E70BE #BA9AD1

Accessibility & contrast

On white

6.04
#804BA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#804BA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804BA6
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804BA6#FFFFFF#000000##FFFFFF
##804BA61.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F60A9
Deuteranopia (green-blind)
#4163A4
Tritanopia (blue-blind)
#7B5B71
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #804ba6;
/* rgb */ color: rgb(128, 75, 166);
/* oklch */ color: oklch(51.5% 0.146 309.1);
Tailwind
colors: {
  custom: {
    50: '#a77fc1',
    500: '#804ba6',
    950: '#000000',
  },
}
SCSS
$custom: #804ba6;
$custom-light: #a77fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#804ba6",
  "rgb": {
    "r": 128,
    "g": 75,
    "b": 166
  },
  "hsl": {
    "h": 274.945,
    "s": 37.759,
    "l": 47.255
  },
  "oklch": {
    "l": 0.51495,
    "c": 0.1464,
    "h": 309.1
  },
  "luminance": 0.12375
}

Semantic roles & 50–950 ramp

primary
#804BA6
secondary
#A3BE8F
accent
#CE5A8A
background
#FAF7FB
surface
#F4EEF7
border
#CEC9D0
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #804BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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