#784EA7#784EA7

#784EA7 is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.1% C 0.140 H 303.6°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#784EA7
RGBrgb(120, 78, 167)
HSLhsl(268, 36%, 48%)
HSVhsv(268, 53%, 65%)
CMYKcmyk(28.1%, 53.3%, 0%, 34.5%)
CIE-LABlab(41.58, 35.94, -41.52)
CIE-LCHlch(41.58, 54.92, 310.88°)
OKLaboklab(51.14% 0.0777 -0.1169)
OKLCHoklch(51.14% 0.14 303.6)
XYZxyz(17.4436, 12.2319, 37.9937)
Luminance0.1223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784EA7 #7DA74E
analogous
#4E50A7 #784EA7 #A54EA7
triadic
#784EA7 #A7784E #4EA778
tetradic
#784EA7 #A74E50 #7DA74E #4EA7A5
square
#784EA7 #A74E50 #7DA74E #4EA7A5
split-complementary
#784EA7 #A7A54E #50A74E
monochromatic
#3C2754 #5A3B7D #784EA7 #9774BE #B69ED2

Accessibility & contrast

On white

6.09
#784EA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#784EA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784EA7
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784EA7#FFFFFF#000000##FFFFFF
##784EA71.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3061AA
Deuteranopia (green-blind)
#3D62A5
Tritanopia (blue-blind)
#705F73
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #784ea7;
/* rgb */ color: rgb(120, 78, 167);
/* oklch */ color: oklch(51.1% 0.140 303.6);
Tailwind
colors: {
  custom: {
    50: '#a181c1',
    500: '#784ea7',
    950: '#000000',
  },
}
SCSS
$custom: #784ea7;
$custom-light: #a181c1;
$custom-dark: #000000;
JSON
{
  "hex": "#784ea7",
  "rgb": {
    "r": 120,
    "g": 78,
    "b": 167
  },
  "hsl": {
    "h": 268.315,
    "s": 36.327,
    "l": 48.039
  },
  "oklch": {
    "l": 0.51139,
    "c": 0.14035,
    "h": 303.6
  },
  "luminance": 0.12232
}

Semantic roles & 50–950 ramp

primary
#784EA7
secondary
#AABE92
accent
#CC5B97
background
#FAF7FB
surface
#F4EEF7
border
#CEC9D0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #784EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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