#804BC2#804BC2

#804BC2 is a mid, vivid violet. Relative luminance 0.135; OKLCH L 53.3% C 0.179 H 301.0°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#804BC2
RGBrgb(128, 75, 194)
HSLhsl(267, 49%, 53%)
HSVhsv(267, 61%, 76%)
CMYKcmyk(34%, 61.3%, 0%, 23.9%)
CIE-LABlab(43.53, 46.41, -54.21)
CIE-LCHlch(43.53, 71.36, 310.56°)
OKLaboklab(53.31% 0.0924 -0.1538)
OKLCHoklch(53.31% 0.179 301)
XYZxyz(21.1534, 13.5163, 52.5229)
Luminance0.1352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804BC2 #8DC24B
analogous
#4B51C2 #804BC2 #BC4BC2
triadic
#804BC2 #C2804B #4BC280
tetradic
#804BC2 #C24B51 #8DC24B #4BC2BC
square
#804BC2 #C24B51 #8DC24B #4BC2BC
split-complementary
#804BC2 #C2BC4B #51C24B
monochromatic
#45256D #62359B #804BC2 #A079D1 #C1A6E1

Accessibility & contrast

On white

5.67
#804BC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#804BC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804BC2
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804BC2#FFFFFF#000000##FFFFFF
##804BC21.005.673.705.67
#FFFFFF5.671.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C6
Deuteranopia (green-blind)
#2366BF
Tritanopia (blue-blind)
#72647F
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #804bc2;
/* rgb */ color: rgb(128, 75, 194);
/* oklch */ color: oklch(53.3% 0.179 301.0);
Tailwind
colors: {
  custom: {
    50: '#a980d5',
    500: '#804bc2',
    950: '#000000',
  },
}
SCSS
$custom: #804bc2;
$custom-light: #a980d5;
$custom-dark: #000000;
JSON
{
  "hex": "#804bc2",
  "rgb": {
    "r": 128,
    "g": 75,
    "b": 194
  },
  "hsl": {
    "h": 266.723,
    "s": 49.378,
    "l": 52.745
  },
  "oklch": {
    "l": 0.53312,
    "c": 0.17947,
    "h": 301
  },
  "luminance": 0.13516
}

Semantic roles & 50–950 ramp

primary
#804BC2
secondary
#B7CE9B
accent
#D94F9B
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #804BC2

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

Preview Lab → · Contrast checker → · Palette generator →

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