#804FCA#804FCA

#804FCA is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.5% C 0.183 H 298.5°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#804FCA
RGBrgb(128, 79, 202)
HSLhsl(264, 54%, 55%)
HSVhsv(264, 61%, 79%)
CMYKcmyk(36.6%, 60.9%, 0%, 20.8%)
CIE-LABlab(44.86, 46.29, -56.70)
CIE-LCHlch(44.86, 73.20, 309.23°)
OKLaboklab(54.45% 0.0873 -0.1611)
OKLCHoklch(54.45% 0.183 298.5)
XYZxyz(22.3561, 14.4452, 57.4760)
Luminance0.1444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#804FCA #99CA4F
analogous
#4F5CCA #804FCA #BD4FCA
triadic
#804FCA #CA804F #4FCA80
tetradic
#804FCA #CA4F5C #99CA4F #4FCABD
square
#804FCA #CA4F5C #99CA4F #4FCABD
split-complementary
#804FCA #CABD4F #5CCA4F
monochromatic
#47257A #6233A9 #804FCA #A27ED8 #C4ADE6

Accessibility & contrast

On white

5.40
#804FCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#804FCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #804FCA
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##804FCA#FFFFFF#000000##FFFFFF
##804FCA1.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACE
Deuteranopia (green-blind)
#1C69C7
Tritanopia (blue-blind)
#6F6A85
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #804fca;
/* rgb */ color: rgb(128, 79, 202);
/* oklch */ color: oklch(54.5% 0.183 298.5);
Tailwind
colors: {
  custom: {
    50: '#aa83db',
    500: '#804fca',
    950: '#000000',
  },
}
SCSS
$custom: #804fca;
$custom-light: #aa83db;
$custom-dark: #000000;
JSON
{
  "hex": "#804fca",
  "rgb": {
    "r": 128,
    "g": 79,
    "b": 202
  },
  "hsl": {
    "h": 263.902,
    "s": 53.712,
    "l": 55.098
  },
  "oklch": {
    "l": 0.54451,
    "c": 0.18329,
    "h": 298.5
  },
  "luminance": 0.14445
}

Semantic roles & 50–950 ramp

primary
#804FCA
secondary
#C0D4A1
accent
#DD4BA3
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #804FCA

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

Preview Lab → · Contrast checker → · Palette generator →

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