#804BC5#804BC5

#804BC5 is a mid, vivid violet. Relative luminance 0.137; OKLCH L 53.5% C 0.183 H 300.3°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#804BC5
RGBrgb(128, 75, 197)
HSLhsl(266, 51%, 53%)
HSVhsv(266, 62%, 77%)
CMYKcmyk(35%, 61.9%, 0%, 22.7%)
CIE-LABlab(43.73, 47.16, -55.63)
CIE-LCHlch(43.73, 72.94, 310.29°)
OKLaboklab(53.52% 0.0923 -0.158)
OKLCHoklch(53.52% 0.183 300.3)
XYZxyz(21.4938, 13.6524, 54.3153)
Luminance0.1365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804BC5 #90C54B
analogous
#4B53C5 #804BC5 #BD4BC5
triadic
#804BC5 #C5804B #4BC580
tetradic
#804BC5 #C54B53 #90C54B #4BC5BD
square
#804BC5 #C54B53 #90C54B #4BC5BD
split-complementary
#804BC5 #C5BD4B #53C54B
monochromatic
#462471 #62339F #804BC5 #A179D4 #C1A8E3

Accessibility & contrast

On white

5.63
#804BC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#804BC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804BC5
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804BC5#FFFFFF#000000##FFFFFF
##804BC51.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067C9
Deuteranopia (green-blind)
#1D67C2
Tritanopia (blue-blind)
#716581
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #804bc5;
/* rgb */ color: rgb(128, 75, 197);
/* oklch */ color: oklch(53.5% 0.183 300.3);
Tailwind
colors: {
  custom: {
    50: '#a980d7',
    500: '#804bc5',
    950: '#000000',
  },
}
SCSS
$custom: #804bc5;
$custom-light: #a980d7;
$custom-dark: #000000;
JSON
{
  "hex": "#804bc5",
  "rgb": {
    "r": 128,
    "g": 75,
    "b": 197
  },
  "hsl": {
    "h": 266.066,
    "s": 51.261,
    "l": 53.333
  },
  "oklch": {
    "l": 0.5352,
    "c": 0.18299,
    "h": 300.3
  },
  "luminance": 0.13653
}

Semantic roles & 50–950 ramp

primary
#804BC5
secondary
#B9D09C
accent
#DB4D9D
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #804BC5

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

Preview Lab → · Contrast checker → · Palette generator →

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