#782AA1#782AA1

#782AA1 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.8% C 0.185 H 311.1°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#782AA1
RGBrgb(120, 42, 161)
HSLhsl(279, 59%, 40%)
HSVhsv(279, 74%, 63%)
CMYKcmyk(25.5%, 73.9%, 0%, 36.9%)
CIE-LABlab(34.44, 52.81, -49.39)
CIE-LCHlch(34.44, 72.31, 316.92°)
OKLaboklab(45.84% 0.1218 -0.1398)
OKLCHoklch(45.84% 0.185 311.1)
XYZxyz(15.0055, 8.2226, 34.5080)
Luminance0.0822 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782AA1 #53A12A
analogous
#3D2AA1 #782AA1 #A12A8E
triadic
#782AA1 #A1782A #2AA178
tetradic
#782AA1 #A13D2A #53A12A #2A8EA1
square
#782AA1 #A13D2A #53A12A #2A8EA1
split-complementary
#782AA1 #8EA12A #2AA13D
monochromatic
#301140 #541D70 #782AA1 #9B3CCC #B46DD9

Accessibility & contrast

On white

7.94
#782AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#782AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782AA1
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782AA1#FFFFFF#000000##FFFFFF
##782AA11.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA4
Deuteranopia (green-blind)
#15529E
Tritanopia (blue-blind)
#734563
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #782aa1;
/* rgb */ color: rgb(120, 42, 161);
/* oklch */ color: oklch(45.8% 0.185 311.1);
Tailwind
colors: {
  custom: {
    50: '#a36bbe',
    500: '#782aa1',
    950: '#000000',
  },
}
SCSS
$custom: #782aa1;
$custom-light: #a36bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#782aa1",
  "rgb": {
    "r": 120,
    "g": 42,
    "b": 161
  },
  "hsl": {
    "h": 279.328,
    "s": 58.621,
    "l": 39.804
  },
  "oklch": {
    "l": 0.45836,
    "c": 0.18541,
    "h": 311.1
  },
  "luminance": 0.08222
}

Semantic roles & 50–950 ramp

primary
#782AA1
secondary
#86C067
accent
#E2467C
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #782AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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