#784EB4#784EB4

#784EB4 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.0% C 0.157 H 300.0°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#784EB4
RGBrgb(120, 78, 180)
HSLhsl(265, 40%, 51%)
HSVhsv(265, 57%, 71%)
CMYKcmyk(33.3%, 56.7%, 0%, 29.4%)
CIE-LABlab(42.36, 39.27, -47.95)
CIE-LCHlch(42.36, 61.98, 309.31°)
OKLaboklab(51.97% 0.0783 -0.1357)
OKLCHoklch(51.97% 0.157 300)
XYZxyz(18.7064, 12.7370, 44.6441)
Luminance0.1274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784EB4 #8AB44E
analogous
#4E57B4 #784EB4 #AB4EB4
triadic
#784EB4 #B4784E #4EB478
tetradic
#784EB4 #B44E57 #8AB44E #4EB4AB
square
#784EB4 #B44E57 #8AB44E #4EB4AB
split-complementary
#784EB4 #B4AB4E #57B44E
monochromatic
#3F285F #5B3B8A #784EB4 #9979C6 #BAA4D8

Accessibility & contrast

On white

5.92
#784EB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#784EB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784EB4
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784EB4#FFFFFF#000000##FFFFFF
##784EB41.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2164B7
Deuteranopia (green-blind)
#3163B2
Tritanopia (blue-blind)
#6B6379
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #784eb4;
/* rgb */ color: rgb(120, 78, 180);
/* oklch */ color: oklch(52.0% 0.157 300.0);
Tailwind
colors: {
  custom: {
    50: '#a281cb',
    500: '#784eb4',
    950: '#000000',
  },
}
SCSS
$custom: #784eb4;
$custom-light: #a281cb;
$custom-dark: #000000;
JSON
{
  "hex": "#784eb4",
  "rgb": {
    "r": 120,
    "g": 78,
    "b": 180
  },
  "hsl": {
    "h": 264.706,
    "s": 40.476,
    "l": 50.588
  },
  "oklch": {
    "l": 0.51968,
    "c": 0.15667,
    "h": 300
  },
  "luminance": 0.12737
}

Semantic roles & 50–950 ramp

primary
#784EB4
secondary
#B3C698
accent
#D0579F
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #784EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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