#782AB6#782AB6

#782AB6 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.5% C 0.206 H 304.8°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#782AB6
RGBrgb(120, 42, 182)
HSLhsl(273, 63%, 44%)
HSVhsv(273, 77%, 71%)
CMYKcmyk(34.1%, 76.9%, 0%, 28.6%)
CIE-LABlab(36.04, 57.51, -59.36)
CIE-LCHlch(36.04, 82.65, 314.09°)
OKLaboklab(47.46% 0.1177 -0.1691)
OKLCHoklch(47.46% 0.206 304.8)
XYZxyz(17.0153, 9.0265, 45.0928)
Luminance0.0903 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782AB6 #68B62A
analogous
#322AB6 #782AB6 #B62AAE
triadic
#782AB6 #B6782A #2AB678
tetradic
#782AB6 #B6322A #68B62A #2AAEB6
square
#782AB6 #B6322A #68B62A #2AAEB6
split-complementary
#782AB6 #AEB62A #2AB632
monochromatic
#361353 #571F84 #782AB6 #9748D5 #B37AE0

Accessibility & contrast

On white

7.49
#782AB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#782AB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782AB6
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782AB6#FFFFFF#000000##FFFFFF
##782AB61.007.492.817.49
#FFFFFF7.491.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BA
Deuteranopia (green-blind)
#0055B3
Tritanopia (blue-blind)
#6C4E6F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #782ab6;
/* rgb */ color: rgb(120, 42, 182);
/* oklch */ color: oklch(47.5% 0.206 304.8);
Tailwind
colors: {
  custom: {
    50: '#a56ccd',
    500: '#782ab6',
    950: '#000000',
  },
}
SCSS
$custom: #782ab6;
$custom-light: #a56ccd;
$custom-dark: #000000;
JSON
{
  "hex": "#782ab6",
  "rgb": {
    "r": 120,
    "g": 42,
    "b": 182
  },
  "hsl": {
    "h": 273.429,
    "s": 62.5,
    "l": 43.922
  },
  "oklch": {
    "l": 0.47459,
    "c": 0.20601,
    "h": 304.8
  },
  "luminance": 0.09026
}

Semantic roles & 50–950 ramp

primary
#782AB6
secondary
#99C873
accent
#E6428B
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #782AB6

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

Preview Lab → · Contrast checker → · Palette generator →

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