#804BA3#804BA3

#804BA3 is a mid, vivid violet. Relative luminance 0.123; OKLCH L 51.3% C 0.143 H 310.1°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#804BA3
RGBrgb(128, 75, 163)
HSLhsl(276, 37%, 47%)
HSVhsv(276, 54%, 64%)
CMYKcmyk(21.5%, 54%, 0%, 36.1%)
CIE-LABlab(41.64, 38.85, -39.00)
CIE-LCHlch(41.64, 55.05, 314.89°)
OKLaboklab(51.32% 0.092 -0.1093)
OKLCHoklch(51.32% 0.143 310.1)
XYZxyz(18.0278, 12.2660, 36.0611)
Luminance0.1227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804BA3 #6EA34B
analogous
#544BA3 #804BA3 #A34B9A
triadic
#804BA3 #A3804B #4BA380
tetradic
#804BA3 #A3544B #6EA34B #4B9AA3
square
#804BA3 #A3544B #6EA34B #4B9AA3
split-complementary
#804BA3 #9AA34B #4BA354
monochromatic
#3E244F #5F3879 #804BA3 #9E6FBD #BA99D0

Accessibility & contrast

On white

6.08
#804BA3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#804BA3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804BA3
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804BA3#FFFFFF#000000##FFFFFF
##804BA31.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3260A6
Deuteranopia (green-blind)
#4363A1
Tritanopia (blue-blind)
#7C5A70
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #804ba3;
/* rgb */ color: rgb(128, 75, 163);
/* oklch */ color: oklch(51.3% 0.143 310.1);
Tailwind
colors: {
  custom: {
    50: '#a77fbf',
    500: '#804ba3',
    950: '#000000',
  },
}
SCSS
$custom: #804ba3;
$custom-light: #a77fbf;
$custom-dark: #000000;
JSON
{
  "hex": "#804ba3",
  "rgb": {
    "r": 128,
    "g": 75,
    "b": 163
  },
  "hsl": {
    "h": 276.136,
    "s": 36.975,
    "l": 46.667
  },
  "oklch": {
    "l": 0.51315,
    "c": 0.14285,
    "h": 310.1
  },
  "luminance": 0.12266
}

Semantic roles & 50–950 ramp

primary
#804BA3
secondary
#A0BC8E
accent
#CD5B88
background
#FAF7FB
surface
#F4EEF7
border
#CEC9D0
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #804BA3

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

Preview Lab → · Contrast checker → · Palette generator →

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