#804AB3#804AB3

#804AB3 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.2% C 0.163 H 305.1°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#804AB3
RGBrgb(128, 74, 179)
HSLhsl(271, 42%, 50%)
HSVhsv(271, 59%, 70%)
CMYKcmyk(28.5%, 58.7%, 0%, 29.8%)
CIE-LABlab(42.37, 43.22, -47.30)
CIE-LCHlch(42.37, 64.08, 312.42°)
OKLaboklab(52.16% 0.094 -0.1335)
OKLCHoklch(52.16% 0.163 305.1)
XYZxyz(19.4858, 12.7415, 44.0719)
Luminance0.1274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804AB3 #7DB34A
analogous
#4B4AB3 #804AB3 #B34AB2
triadic
#804AB3 #B3804A #4AB380
tetradic
#804AB3 #B34B4A #7DB34A #4AB2B3
square
#804AB3 #B34B4A #7DB34A #4AB2B3
split-complementary
#804AB3 #B2B34A #4AB34B
monochromatic
#42265C #613888 #804AB3 #9E74C6 #BCA0D8

Accessibility & contrast

On white

5.92
#804AB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#804AB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804AB3
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804AB3#FFFFFF#000000##FFFFFF
##804AB31.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D62B6
Deuteranopia (green-blind)
#3564B1
Tritanopia (blue-blind)
#775F77
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #804ab3;
/* rgb */ color: rgb(128, 74, 179);
/* oklch */ color: oklch(52.2% 0.163 305.1);
Tailwind
colors: {
  custom: {
    50: '#a87fca',
    500: '#804ab3',
    950: '#000000',
  },
}
SCSS
$custom: #804ab3;
$custom-light: #a87fca;
$custom-dark: #000000;
JSON
{
  "hex": "#804ab3",
  "rgb": {
    "r": 128,
    "g": 74,
    "b": 179
  },
  "hsl": {
    "h": 270.857,
    "s": 41.502,
    "l": 49.608
  },
  "oklch": {
    "l": 0.52159,
    "c": 0.16331,
    "h": 305.1
  },
  "luminance": 0.12741
}

Semantic roles & 50–950 ramp

primary
#804AB3
secondary
#ACC494
accent
#D15692
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #804AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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