#784EC5#784EC5

#784EC5 is a mid, vivid violet. Relative luminance 0.135; OKLCH L 53.1% C 0.178 H 296.1°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#784EC5
RGBrgb(120, 78, 197)
HSLhsl(261, 51%, 54%)
HSVhsv(261, 60%, 77%)
CMYKcmyk(39.1%, 60.4%, 0%, 22.7%)
CIE-LABlab(43.47, 43.75, -56.10)
CIE-LCHlch(43.47, 71.15, 307.95°)
OKLaboklab(53.13% 0.0781 -0.1596)
OKLCHoklch(53.13% 0.178 296.1)
XYZxyz(20.5455, 13.4727, 54.3305)
Luminance0.1347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784EC5 #9BC54E
analogous
#4E60C5 #784EC5 #B34EC5
triadic
#784EC5 #C5784E #4EC578
tetradic
#784EC5 #C54E60 #9BC54E #4EC5B3
square
#784EC5 #C54E60 #9BC54E #4EC5B3
split-complementary
#784EC5 #C5B34E #60C54E
monochromatic
#412673 #5B35A1 #784EC5 #9B7CD4 #BEAAE3

Accessibility & contrast

On white

5.68
#784EC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#784EC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784EC5
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784EC5#FFFFFF#000000##FFFFFF
##784EC51.005.683.695.68
#FFFFFF5.681.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067C9
Deuteranopia (green-blind)
#1565C2
Tritanopia (blue-blind)
#656882
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #784ec5;
/* rgb */ color: rgb(120, 78, 197);
/* oklch */ color: oklch(53.1% 0.178 296.1);
Tailwind
colors: {
  custom: {
    50: '#a481d7',
    500: '#784ec5',
    950: '#000000',
  },
}
SCSS
$custom: #784ec5;
$custom-light: #a481d7;
$custom-dark: #000000;
JSON
{
  "hex": "#784ec5",
  "rgb": {
    "r": 120,
    "g": 78,
    "b": 197
  },
  "hsl": {
    "h": 261.176,
    "s": 50.638,
    "l": 53.922
  },
  "oklch": {
    "l": 0.53129,
    "c": 0.17772,
    "h": 296.1
  },
  "luminance": 0.13473
}

Semantic roles & 50–950 ramp

primary
#784EC5
secondary
#BFD19E
accent
#DA4EA9
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #784EC5

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

Preview Lab → · Contrast checker → · Palette generator →

#784EC5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva