#782DA2#782DA2

#782DA2 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.2% C 0.183 H 310.5°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#782DA2
RGBrgb(120, 45, 162)
HSLhsl(278, 57%, 41%)
HSVhsv(278, 72%, 64%)
CMYKcmyk(25.9%, 72.2%, 0%, 36.5%)
CIE-LABlab(34.96, 51.76, -49.15)
CIE-LCHlch(34.96, 71.38, 316.48°)
OKLaboklab(46.23% 0.1186 -0.1391)
OKLCHoklch(46.23% 0.183 310.5)
XYZxyz(15.2044, 8.4788, 35.0110)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782DA2 #57A22D
analogous
#3E2DA2 #782DA2 #A22D91
triadic
#782DA2 #A2782D #2DA278
tetradic
#782DA2 #A23E2D #57A22D #2D91A2
square
#782DA2 #A23E2D #57A22D #2D91A2
split-complementary
#782DA2 #91A22D #2DA23E
monochromatic
#311242 #552072 #782DA2 #9942CA #B372D8

Accessibility & contrast

On white

7.79
#782DA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#782DA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782DA2
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782DA2#FFFFFF#000000##FFFFFF
##782DA21.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA5
Deuteranopia (green-blind)
#18539F
Tritanopia (blue-blind)
#724765
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #782da2;
/* rgb */ color: rgb(120, 45, 162);
/* oklch */ color: oklch(46.2% 0.183 310.5);
Tailwind
colors: {
  custom: {
    50: '#a36dbe',
    500: '#782da2',
    950: '#000000',
  },
}
SCSS
$custom: #782da2;
$custom-light: #a36dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#782da2",
  "rgb": {
    "r": 120,
    "g": 45,
    "b": 162
  },
  "hsl": {
    "h": 278.462,
    "s": 56.522,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46227,
    "c": 0.18282,
    "h": 310.5
  },
  "luminance": 0.08478
}

Semantic roles & 50–950 ramp

primary
#782DA2
secondary
#8ABF6C
accent
#E0487E
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #782DA2

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

Preview Lab → · Contrast checker → · Palette generator →

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