#782AA5#782AA5

#782AA5 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.1% C 0.189 H 309.8°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#782AA5
RGBrgb(120, 42, 165)
HSLhsl(278, 59%, 41%)
HSVhsv(278, 75%, 65%)
CMYKcmyk(27.3%, 74.5%, 0%, 35.3%)
CIE-LABlab(34.73, 53.69, -51.33)
CIE-LCHlch(34.73, 74.28, 316.29°)
OKLaboklab(46.13% 0.1212 -0.1455)
OKLCHoklch(46.13% 0.189 309.8)
XYZxyz(15.3639, 8.3659, 36.3954)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782AA5 #57A52A
analogous
#3B2AA5 #782AA5 #A52A94
triadic
#782AA5 #A5782A #2AA578
tetradic
#782AA5 #A53B2A #57A52A #2A94A5
square
#782AA5 #A53B2A #57A52A #2A94A5
split-complementary
#782AA5 #94A52A #2AA53B
monochromatic
#311143 #551E74 #782AA5 #993ECE #B36FDA

Accessibility & contrast

On white

7.86
#782AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #782AA5
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782AA5#FFFFFF#000000##FFFFFF
##782AA51.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA8
Deuteranopia (green-blind)
#0A53A2
Tritanopia (blue-blind)
#724765
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #782aa5;
/* rgb */ color: rgb(120, 42, 165);
/* oklch */ color: oklch(46.1% 0.189 309.8);
Tailwind
colors: {
  custom: {
    50: '#a36bc0',
    500: '#782aa5',
    950: '#000000',
  },
}
SCSS
$custom: #782aa5;
$custom-light: #a36bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#782aa5",
  "rgb": {
    "r": 120,
    "g": 42,
    "b": 165
  },
  "hsl": {
    "h": 278.049,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46134,
    "c": 0.18933,
    "h": 309.8
  },
  "luminance": 0.08366
}

Semantic roles & 50–950 ramp

primary
#782AA5
secondary
#8AC169
accent
#E3457F
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #782AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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