#784EA2#784EA2

#784EA2 is a mid, vivid violet. Relative luminance 0.120; OKLCH L 50.8% C 0.134 H 305.2°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#784EA2
RGBrgb(120, 78, 162)
HSLhsl(270, 35%, 47%)
HSVhsv(270, 52%, 64%)
CMYKcmyk(25.9%, 51.9%, 0%, 36.5%)
CIE-LABlab(41.30, 34.69, -39.00)
CIE-LCHlch(41.30, 52.20, 311.65°)
OKLaboklab(50.83% 0.0773 -0.1095)
OKLCHoklch(50.83% 0.134 305.2)
XYZxyz(16.9903, 12.0506, 35.6063)
Luminance0.1205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784EA2 #78A24E
analogous
#4E4EA2 #784EA2 #A24EA2
triadic
#784EA2 #A2784E #4EA278
tetradic
#784EA2 #A24E4E #78A24E #4EA2A2
square
#784EA2 #A24E4E #78A24E #4EA2A2
split-complementary
#784EA2 #A2A24E #4EA24E
monochromatic
#3B264F #593A79 #784EA2 #9772BB #B59BCF

Accessibility & contrast

On white

6.16
#784EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#784EA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784EA2
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784EA2#FFFFFF#000000##FFFFFF
##784EA21.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3460A5
Deuteranopia (green-blind)
#4162A0
Tritanopia (blue-blind)
#715D70
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #784ea2;
/* rgb */ color: rgb(120, 78, 162);
/* oklch */ color: oklch(50.8% 0.134 305.2);
Tailwind
colors: {
  custom: {
    50: '#a181be',
    500: '#784ea2',
    950: '#000000',
  },
}
SCSS
$custom: #784ea2;
$custom-light: #a181be;
$custom-dark: #000000;
JSON
{
  "hex": "#784ea2",
  "rgb": {
    "r": 120,
    "g": 78,
    "b": 162
  },
  "hsl": {
    "h": 270,
    "s": 35,
    "l": 47.059
  },
  "oklch": {
    "l": 0.50835,
    "c": 0.13404,
    "h": 305.2
  },
  "luminance": 0.1205
}

Semantic roles & 50–950 ramp

primary
#784EA2
secondary
#A6BC90
accent
#CB5D94
background
#FAF7FB
surface
#F4EEF7
border
#CEC9D0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #784EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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