#784EA6#784EA6

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

Color values

HEX#784EA6
RGBrgb(120, 78, 166)
HSLhsl(269, 36%, 48%)
HSVhsv(269, 53%, 65%)
CMYKcmyk(27.7%, 53%, 0%, 34.9%)
CIE-LABlab(41.52, 35.69, -41.02)
CIE-LCHlch(41.52, 54.37, 311.02°)
OKLaboklab(51.08% 0.0776 -0.1154)
OKLCHoklch(51.08% 0.139 303.9)
XYZxyz(17.3515, 12.1951, 37.5088)
Luminance0.1220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784EA6 #7CA64E
analogous
#4E50A6 #784EA6 #A44EA6
triadic
#784EA6 #A6784E #4EA678
tetradic
#784EA6 #A64E50 #7CA64E #4EA6A4
square
#784EA6 #A64E50 #7CA64E #4EA6A4
split-complementary
#784EA6 #A6A44E #50A64E
monochromatic
#3C2753 #5A3A7C #784EA6 #9774BE #B69DD1

Accessibility & contrast

On white

6.11
#784EA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#784EA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784EA6
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784EA6#FFFFFF#000000##FFFFFF
##784EA61.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3161A9
Deuteranopia (green-blind)
#3E62A4
Tritanopia (blue-blind)
#705E72
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #784ea6;
/* rgb */ color: rgb(120, 78, 166);
/* oklch */ color: oklch(51.1% 0.139 303.9);
Tailwind
colors: {
  custom: {
    50: '#a181c1',
    500: '#784ea6',
    950: '#000000',
  },
}
SCSS
$custom: #784ea6;
$custom-light: #a181c1;
$custom-dark: #000000;
JSON
{
  "hex": "#784ea6",
  "rgb": {
    "r": 120,
    "g": 78,
    "b": 166
  },
  "hsl": {
    "h": 268.636,
    "s": 36.066,
    "l": 47.843
  },
  "oklch": {
    "l": 0.51078,
    "c": 0.13908,
    "h": 303.9
  },
  "luminance": 0.12195
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #784EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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