#784EB6#784EB6

#784EB6 is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.1% C 0.159 H 299.5°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#784EB6
RGBrgb(120, 78, 182)
HSLhsl(264, 42%, 51%)
HSVhsv(264, 57%, 71%)
CMYKcmyk(34.1%, 57.1%, 0%, 28.6%)
CIE-LABlab(42.49, 39.79, -48.93)
CIE-LCHlch(42.49, 63.06, 309.12°)
OKLaboklab(52.1% 0.0783 -0.1386)
OKLCHoklch(52.1% 0.159 299.5)
XYZxyz(18.9116, 12.8191, 45.7249)
Luminance0.1282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784EB6 #8CB64E
analogous
#4E58B6 #784EB6 #AC4EB6
triadic
#784EB6 #B6784E #4EB678
tetradic
#784EB6 #B64E58 #8CB64E #4EB6AC
square
#784EB6 #B64E58 #8CB64E #4EB6AC
split-complementary
#784EB6 #B6AC4E #58B64E
monochromatic
#3F2861 #5B3A8D #784EB6 #9979C8 #BAA5DA

Accessibility & contrast

On white

5.89
#784EB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #784EB6
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784EB6#FFFFFF#000000##FFFFFF
##784EB61.005.893.565.89
#FFFFFF5.891.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E64B9
Deuteranopia (green-blind)
#2F63B4
Tritanopia (blue-blind)
#6B637A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #784eb6;
/* rgb */ color: rgb(120, 78, 182);
/* oklch */ color: oklch(52.1% 0.159 299.5);
Tailwind
colors: {
  custom: {
    50: '#a381cc',
    500: '#784eb6',
    950: '#000000',
  },
}
SCSS
$custom: #784eb6;
$custom-light: #a381cc;
$custom-dark: #000000;
JSON
{
  "hex": "#784eb6",
  "rgb": {
    "r": 120,
    "g": 78,
    "b": 182
  },
  "hsl": {
    "h": 264.231,
    "s": 41.6,
    "l": 50.98
  },
  "oklch": {
    "l": 0.521,
    "c": 0.15916,
    "h": 299.5
  },
  "luminance": 0.12819
}

Semantic roles & 50–950 ramp

primary
#784EB6
secondary
#B4C799
accent
#D156A0
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #784EB6

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

Preview Lab → · Contrast checker → · Palette generator →

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