#804BA2#804BA2

#804BA2 is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.3% C 0.142 H 310.5°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#804BA2
RGBrgb(128, 75, 162)
HSLhsl(277, 37%, 46%)
HSVhsv(277, 54%, 64%)
CMYKcmyk(21%, 53.7%, 0%, 36.5%)
CIE-LABlab(41.58, 38.62, -38.50)
CIE-LCHlch(41.58, 54.53, 315.09°)
OKLaboklab(51.26% 0.0919 -0.1078)
OKLCHoklch(51.26% 0.142 310.5)
XYZxyz(17.9385, 12.2303, 35.5911)
Luminance0.1223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804BA2 #6DA24B
analogous
#554BA2 #804BA2 #A24B99
triadic
#804BA2 #A2804B #4BA280
tetradic
#804BA2 #A2554B #6DA24B #4B99A2
square
#804BA2 #A2554B #6DA24B #4B99A2
split-complementary
#804BA2 #99A24B #4BA255
monochromatic
#3E244E #5F3878 #804BA2 #9E6EBC #BA98CF

Accessibility & contrast

On white

6.09
#804BA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #804BA2
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804BA2#FFFFFF#000000##FFFFFF
##804BA21.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3360A5
Deuteranopia (green-blind)
#4463A0
Tritanopia (blue-blind)
#7C5A6F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #804ba2;
/* rgb */ color: rgb(128, 75, 162);
/* oklch */ color: oklch(51.3% 0.142 310.5);
Tailwind
colors: {
  custom: {
    50: '#a77fbe',
    500: '#804ba2',
    950: '#000000',
  },
}
SCSS
$custom: #804ba2;
$custom-light: #a77fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#804ba2",
  "rgb": {
    "r": 128,
    "g": 75,
    "b": 162
  },
  "hsl": {
    "h": 276.552,
    "s": 36.709,
    "l": 46.471
  },
  "oklch": {
    "l": 0.51255,
    "c": 0.14167,
    "h": 310.5
  },
  "luminance": 0.1223
}

Semantic roles & 50–950 ramp

primary
#804BA2
secondary
#9FBC8D
accent
#CD5B87
background
#FAF7FB
surface
#F4EEF7
border
#CEC9D0
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #804BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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