#782AA2#782AA2

#782AA2 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.9% C 0.186 H 310.8°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#782AA2
RGBrgb(120, 42, 162)
HSLhsl(279, 59%, 40%)
HSVhsv(279, 74%, 64%)
CMYKcmyk(25.9%, 74.1%, 0%, 36.5%)
CIE-LABlab(34.51, 53.03, -49.88)
CIE-LCHlch(34.51, 72.80, 316.76°)
OKLaboklab(45.91% 0.1217 -0.1412)
OKLCHoklch(45.91% 0.186 310.8)
XYZxyz(15.0940, 8.2580, 34.9742)
Luminance0.0826 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782AA2 #54A22A
analogous
#3C2AA2 #782AA2 #A22A90
triadic
#782AA2 #A2782A #2AA278
tetradic
#782AA2 #A23C2A #54A22A #2A90A2
square
#782AA2 #A23C2A #54A22A #2A90A2
split-complementary
#782AA2 #90A22A #2AA23C
monochromatic
#301141 #541D71 #782AA2 #9A3DCD #B36DD9

Accessibility & contrast

On white

7.92
#782AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#782AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782AA2
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782AA2#FFFFFF#000000##FFFFFF
##782AA21.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA5
Deuteranopia (green-blind)
#13529F
Tritanopia (blue-blind)
#724564
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #782aa2;
/* rgb */ color: rgb(120, 42, 162);
/* oklch */ color: oklch(45.9% 0.186 310.8);
Tailwind
colors: {
  custom: {
    50: '#a36bbe',
    500: '#782aa2',
    950: '#000000',
  },
}
SCSS
$custom: #782aa2;
$custom-light: #a36bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#782aa2",
  "rgb": {
    "r": 120,
    "g": 42,
    "b": 162
  },
  "hsl": {
    "h": 279,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.4591,
    "c": 0.1864,
    "h": 310.8
  },
  "luminance": 0.08258
}

Semantic roles & 50–950 ramp

primary
#782AA2
secondary
#87C068
accent
#E2467C
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #782AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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