#784EB5#784EB5

#784EB5 is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.0% C 0.158 H 299.7°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#784EB5
RGBrgb(120, 78, 181)
HSLhsl(264, 41%, 51%)
HSVhsv(264, 57%, 71%)
CMYKcmyk(33.7%, 56.9%, 0%, 29%)
CIE-LABlab(42.43, 39.53, -48.44)
CIE-LCHlch(42.43, 62.52, 309.22°)
OKLaboklab(52.03% 0.0783 -0.1371)
OKLCHoklch(52.03% 0.158 299.7)
XYZxyz(18.8086, 12.7779, 45.1826)
Luminance0.1278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784EB5 #8BB54E
analogous
#4E57B5 #784EB5 #AB4EB5
triadic
#784EB5 #B5784E #4EB578
tetradic
#784EB5 #B54E57 #8BB54E #4EB5AB
square
#784EB5 #B54E57 #8BB54E #4EB5AB
split-complementary
#784EB5 #B5AB4E #57B54E
monochromatic
#3F2860 #5B3A8B #784EB5 #9979C7 #BAA4D9

Accessibility & contrast

On white

5.91
#784EB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#784EB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784EB5
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784EB5#FFFFFF#000000##FFFFFF
##784EB51.005.913.565.91
#FFFFFF5.911.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2064B8
Deuteranopia (green-blind)
#3063B3
Tritanopia (blue-blind)
#6B637A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #784eb5;
/* rgb */ color: rgb(120, 78, 181);
/* oklch */ color: oklch(52.0% 0.158 299.7);
Tailwind
colors: {
  custom: {
    50: '#a381cc',
    500: '#784eb5',
    950: '#000000',
  },
}
SCSS
$custom: #784eb5;
$custom-light: #a381cc;
$custom-dark: #000000;
JSON
{
  "hex": "#784eb5",
  "rgb": {
    "r": 120,
    "g": 78,
    "b": 181
  },
  "hsl": {
    "h": 264.466,
    "s": 41.036,
    "l": 50.784
  },
  "oklch": {
    "l": 0.52034,
    "c": 0.15792,
    "h": 299.7
  },
  "luminance": 0.12778
}

Semantic roles & 50–950 ramp

primary
#784EB5
secondary
#B4C699
accent
#D1579F
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #784EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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