#804BC4#804BC4

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

Color values

HEX#804BC4
RGBrgb(128, 75, 196)
HSLhsl(266, 51%, 53%)
HSVhsv(266, 62%, 77%)
CMYKcmyk(34.7%, 61.7%, 0%, 23.1%)
CIE-LABlab(43.66, 46.91, -55.16)
CIE-LCHlch(43.66, 72.41, 310.38°)
OKLaboklab(53.45% 0.0924 -0.1566)
OKLCHoklch(53.45% 0.182 300.5)
XYZxyz(21.3796, 13.6067, 53.7138)
Luminance0.1361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804BC4 #8FC44B
analogous
#4B52C4 #804BC4 #BD4BC4
triadic
#804BC4 #C4804B #4BC480
tetradic
#804BC4 #C44B52 #8FC44B #4BC4BD
square
#804BC4 #C44B52 #8FC44B #4BC4BD
split-complementary
#804BC4 #C4BD4B #52C44B
monochromatic
#462570 #62349E #804BC4 #A179D3 #C1A7E2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##804BC4#FFFFFF#000000##FFFFFF
##804BC41.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)
#0067C8
Deuteranopia (green-blind)
#1F66C1
Tritanopia (blue-blind)
#726580
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #804bc4;
/* rgb */ color: rgb(128, 75, 196);
/* oklch */ color: oklch(53.4% 0.182 300.5);
Tailwind
colors: {
  custom: {
    50: '#a980d7',
    500: '#804bc4',
    950: '#000000',
  },
}
SCSS
$custom: #804bc4;
$custom-light: #a980d7;
$custom-dark: #000000;
JSON
{
  "hex": "#804bc4",
  "rgb": {
    "r": 128,
    "g": 75,
    "b": 196
  },
  "hsl": {
    "h": 266.281,
    "s": 50.628,
    "l": 53.137
  },
  "oklch": {
    "l": 0.5345,
    "c": 0.18182,
    "h": 300.5
  },
  "luminance": 0.13607
}

Semantic roles & 50–950 ramp

primary
#804BC4
secondary
#B9CF9B
accent
#DA4E9D
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #804BC4

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

Preview Lab → · Contrast checker → · Palette generator →

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