#784EB9#784EB9

#784EB9 is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.3% C 0.163 H 298.7°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#784EB9
RGBrgb(120, 78, 185)
HSLhsl(264, 43%, 52%)
HSVhsv(264, 58%, 73%)
CMYKcmyk(35.1%, 57.8%, 0%, 27.5%)
CIE-LABlab(42.68, 40.57, -50.38)
CIE-LCHlch(42.68, 64.69, 308.85°)
OKLaboklab(52.3% 0.0783 -0.1428)
OKLCHoklch(52.3% 0.163 298.7)
XYZxyz(19.2249, 12.9444, 47.3752)
Luminance0.1295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784EB9 #8FB94E
analogous
#4E5AB9 #784EB9 #AE4EB9
triadic
#784EB9 #B9784E #4EB978
tetradic
#784EB9 #B94E5A #8FB94E #4EB9AE
square
#784EB9 #B94E5A #8FB94E #4EB9AE
split-complementary
#784EB9 #B9AE4E #5AB94E
monochromatic
#402865 #5C3991 #784EB9 #997ACA #BBA6DC

Accessibility & contrast

On white

5.85
#784EB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#784EB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784EB9
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784EB9#FFFFFF#000000##FFFFFF
##784EB91.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1865BD
Deuteranopia (green-blind)
#2B64B7
Tritanopia (blue-blind)
#6A647C
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #784eb9;
/* rgb */ color: rgb(120, 78, 185);
/* oklch */ color: oklch(52.3% 0.163 298.7);
Tailwind
colors: {
  custom: {
    50: '#a381cf',
    500: '#784eb9',
    950: '#000000',
  },
}
SCSS
$custom: #784eb9;
$custom-light: #a381cf;
$custom-dark: #000000;
JSON
{
  "hex": "#784eb9",
  "rgb": {
    "r": 120,
    "g": 78,
    "b": 185
  },
  "hsl": {
    "h": 263.551,
    "s": 43.32,
    "l": 51.569
  },
  "oklch": {
    "l": 0.52301,
    "c": 0.1629,
    "h": 298.7
  },
  "luminance": 0.12945
}

Semantic roles & 50–950 ramp

primary
#784EB9
secondary
#B6C99A
accent
#D355A1
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#0F0A14
muted
#7F7C82

Preview Lab

Preview with #784EB9

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

Preview Lab → · Contrast checker → · Palette generator →

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