#782AA4#782AA4

#782AA4 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 46.1% C 0.188 H 310.1°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#782AA4
RGBrgb(120, 42, 164)
HSLhsl(278, 59%, 40%)
HSVhsv(278, 74%, 64%)
CMYKcmyk(26.8%, 74.4%, 0%, 35.7%)
CIE-LABlab(34.66, 53.47, -50.85)
CIE-LCHlch(34.66, 73.78, 316.44°)
OKLaboklab(46.06% 0.1214 -0.144)
OKLCHoklch(46.06% 0.188 310.1)
XYZxyz(15.2732, 8.3297, 35.9180)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782AA4 #56A42A
analogous
#3B2AA4 #782AA4 #A42A93
triadic
#782AA4 #A4782A #2AA478
tetradic
#782AA4 #A43B2A #56A42A #2A93A4
square
#782AA4 #A43B2A #56A42A #2A93A4
split-complementary
#782AA4 #93A42A #2AA43B
monochromatic
#311143 #541E73 #782AA4 #9A3ECD #B36EDA

Accessibility & contrast

On white

7.88
#782AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#782AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782AA4
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782AA4#FFFFFF#000000##FFFFFF
##782AA41.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA7
Deuteranopia (green-blind)
#0E53A1
Tritanopia (blue-blind)
#724665
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #782aa4;
/* rgb */ color: rgb(120, 42, 164);
/* oklch */ color: oklch(46.1% 0.188 310.1);
Tailwind
colors: {
  custom: {
    50: '#a36bc0',
    500: '#782aa4',
    950: '#000000',
  },
}
SCSS
$custom: #782aa4;
$custom-light: #a36bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#782aa4",
  "rgb": {
    "r": 120,
    "g": 42,
    "b": 164
  },
  "hsl": {
    "h": 278.361,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46059,
    "c": 0.18835,
    "h": 310.1
  },
  "luminance": 0.08329
}

Semantic roles & 50–950 ramp

primary
#782AA4
secondary
#89C169
accent
#E2457E
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #782AA4

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

Preview Lab → · Contrast checker → · Palette generator →

#782AA4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva