#784EC4#784EC4

#784EC4 is a mid, vivid violet. Relative luminance 0.134; OKLCH L 53.1% C 0.176 H 296.3°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#784EC4
RGBrgb(120, 78, 196)
HSLhsl(261, 50%, 54%)
HSVhsv(261, 60%, 77%)
CMYKcmyk(38.8%, 60.2%, 0%, 23.1%)
CIE-LABlab(43.40, 43.48, -55.63)
CIE-LCHlch(43.40, 70.61, 308.01°)
OKLaboklab(53.06% 0.0781 -0.1583)
OKLCHoklch(53.06% 0.176 296.3)
XYZxyz(20.4314, 13.4270, 53.7291)
Luminance0.1343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784EC4 #9AC44E
analogous
#4E5FC4 #784EC4 #B34EC4
triadic
#784EC4 #C4784E #4EC478
tetradic
#784EC4 #C44E5F #9AC44E #4EC4B3
square
#784EC4 #C44E5F #9AC44E #4EC4B3
split-complementary
#784EC4 #C4B34E #5FC44E
monochromatic
#412672 #5B35A0 #784EC4 #9B7CD3 #BEAAE3

Accessibility & contrast

On white

5.70
#784EC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #784EC4
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784EC4#FFFFFF#000000##FFFFFF
##784EC41.005.703.695.70
#FFFFFF5.701.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067C8
Deuteranopia (green-blind)
#1765C1
Tritanopia (blue-blind)
#656881
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #784ec4;
/* rgb */ color: rgb(120, 78, 196);
/* oklch */ color: oklch(53.1% 0.176 296.3);
Tailwind
colors: {
  custom: {
    50: '#a481d7',
    500: '#784ec4',
    950: '#000000',
  },
}
SCSS
$custom: #784ec4;
$custom-light: #a481d7;
$custom-dark: #000000;
JSON
{
  "hex": "#784ec4",
  "rgb": {
    "r": 120,
    "g": 78,
    "b": 196
  },
  "hsl": {
    "h": 261.356,
    "s": 50,
    "l": 53.725
  },
  "oklch": {
    "l": 0.53058,
    "c": 0.17649,
    "h": 296.3
  },
  "luminance": 0.13427
}

Semantic roles & 50–950 ramp

primary
#784EC4
secondary
#BED09E
accent
#DA4EA8
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #784EC4

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

Preview Lab → · Contrast checker → · Palette generator →

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