#782DA1#782DA1

#782DA1 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.2% C 0.182 H 310.8°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#782DA1
RGBrgb(120, 45, 161)
HSLhsl(279, 56%, 40%)
HSVhsv(279, 72%, 63%)
CMYKcmyk(25.5%, 72%, 0%, 36.9%)
CIE-LABlab(34.89, 51.54, -48.67)
CIE-LCHlch(34.89, 70.89, 316.64°)
OKLaboklab(46.15% 0.1188 -0.1377)
OKLCHoklch(46.15% 0.182 310.8)
XYZxyz(15.1159, 8.4434, 34.5448)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782DA1 #56A12D
analogous
#3E2DA1 #782DA1 #A12D90
triadic
#782DA1 #A1782D #2DA178
tetradic
#782DA1 #A13E2D #56A12D #2D90A1
square
#782DA1 #A13E2D #56A12D #2D90A1
split-complementary
#782DA1 #90A12D #2DA13E
monochromatic
#311241 #542071 #782DA1 #9A41CA #B371D7

Accessibility & contrast

On white

7.81
#782DA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#782DA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782DA1
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782DA1#FFFFFF#000000##FFFFFF
##782DA11.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA4
Deuteranopia (green-blind)
#1A539E
Tritanopia (blue-blind)
#734764
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #782da1;
/* rgb */ color: rgb(120, 45, 161);
/* oklch */ color: oklch(46.2% 0.182 310.8);
Tailwind
colors: {
  custom: {
    50: '#a36dbd',
    500: '#782da1',
    950: '#000000',
  },
}
SCSS
$custom: #782da1;
$custom-light: #a36dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#782da1",
  "rgb": {
    "r": 120,
    "g": 45,
    "b": 161
  },
  "hsl": {
    "h": 278.793,
    "s": 56.311,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46154,
    "c": 0.18182,
    "h": 310.8
  },
  "luminance": 0.08443
}

Semantic roles & 50–950 ramp

primary
#782DA1
secondary
#89BF6B
accent
#E0487E
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #782DA1

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

Preview Lab → · Contrast checker → · Palette generator →

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