#784EA5#784EA5

#784EA5 is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.0% C 0.138 H 304.2°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#784EA5
RGBrgb(120, 78, 165)
HSLhsl(269, 36%, 48%)
HSVhsv(269, 53%, 65%)
CMYKcmyk(27.3%, 52.7%, 0%, 35.3%)
CIE-LABlab(41.47, 35.44, -40.52)
CIE-LCHlch(41.47, 53.83, 311.18°)
OKLaboklab(51.02% 0.0776 -0.1139)
OKLCHoklch(51.02% 0.138 304.2)
XYZxyz(17.2602, 12.1585, 37.0275)
Luminance0.1216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784EA5 #7BA54E
analogous
#4E4FA5 #784EA5 #A34EA5
triadic
#784EA5 #A5784E #4EA578
tetradic
#784EA5 #A54E4F #7BA54E #4EA5A3
square
#784EA5 #A54E4F #7BA54E #4EA5A3
split-complementary
#784EA5 #A5A34E #4FA54E
monochromatic
#3C2752 #5A3A7B #784EA5 #9773BD #B69DD1

Accessibility & contrast

On white

6.12
#784EA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#784EA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784EA5
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784EA5#FFFFFF#000000##FFFFFF
##784EA51.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3261A8
Deuteranopia (green-blind)
#3E62A3
Tritanopia (blue-blind)
#705E72
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #784ea5;
/* rgb */ color: rgb(120, 78, 165);
/* oklch */ color: oklch(51.0% 0.138 304.2);
Tailwind
colors: {
  custom: {
    50: '#a181c0',
    500: '#784ea5',
    950: '#000000',
  },
}
SCSS
$custom: #784ea5;
$custom-light: #a181c0;
$custom-dark: #000000;
JSON
{
  "hex": "#784ea5",
  "rgb": {
    "r": 120,
    "g": 78,
    "b": 165
  },
  "hsl": {
    "h": 268.966,
    "s": 35.802,
    "l": 47.647
  },
  "oklch": {
    "l": 0.51016,
    "c": 0.13782,
    "h": 304.2
  },
  "luminance": 0.12158
}

Semantic roles & 50–950 ramp

primary
#784EA5
secondary
#A8BD91
accent
#CC5C96
background
#FAF7FB
surface
#F4EEF7
border
#CEC9D0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #784EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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