#804AC7#804AC7

#804AC7 is a mid, vivid violet. Relative luminance 0.136; OKLCH L 53.5% C 0.187 H 300.0°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#804AC7
RGBrgb(128, 74, 199)
HSLhsl(266, 53%, 54%)
HSVhsv(266, 63%, 78%)
CMYKcmyk(35.7%, 62.8%, 0%, 22%)
CIE-LABlab(43.67, 48.20, -56.89)
CIE-LCHlch(43.67, 74.57, 310.27°)
OKLaboklab(53.52% 0.0933 -0.1617)
OKLCHoklch(53.52% 0.187 300)
XYZxyz(21.6572, 13.6101, 55.5078)
Luminance0.1361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804AC7 #91C74A
analogous
#4A52C7 #804AC7 #BE4AC7
triadic
#804AC7 #C7804A #4AC780
tetradic
#804AC7 #C74A52 #91C74A #4AC7BE
square
#804AC7 #C74A52 #91C74A #4AC7BE
split-complementary
#804AC7 #C7BE4A #52C74A
monochromatic
#462473 #6232A2 #804AC7 #A179D5 #C2A7E4

Accessibility & contrast

On white

5.64
#804AC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#804AC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804AC7
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804AC7#FFFFFF#000000##FFFFFF
##804AC71.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CB
Deuteranopia (green-blind)
#1666C4
Tritanopia (blue-blind)
#716582
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #804ac7;
/* rgb */ color: rgb(128, 74, 199);
/* oklch */ color: oklch(53.5% 0.187 300.0);
Tailwind
colors: {
  custom: {
    50: '#aa7fd9',
    500: '#804ac7',
    950: '#000000',
  },
}
SCSS
$custom: #804ac7;
$custom-light: #aa7fd9;
$custom-dark: #000000;
JSON
{
  "hex": "#804ac7",
  "rgb": {
    "r": 128,
    "g": 74,
    "b": 199
  },
  "hsl": {
    "h": 265.92,
    "s": 52.743,
    "l": 53.529
  },
  "oklch": {
    "l": 0.53518,
    "c": 0.18671,
    "h": 300
  },
  "luminance": 0.1361
}

Semantic roles & 50–950 ramp

primary
#804AC7
secondary
#BAD19C
accent
#DC4C9E
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #804AC7

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

Preview Lab → · Contrast checker → · Palette generator →

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