#782AA6#782AA6

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

Color values

HEX#782AA6
RGBrgb(120, 42, 166)
HSLhsl(278, 60%, 41%)
HSVhsv(278, 75%, 65%)
CMYKcmyk(27.7%, 74.7%, 0%, 34.9%)
CIE-LABlab(34.81, 53.91, -51.81)
CIE-LCHlch(34.81, 74.77, 316.14°)
OKLaboklab(46.21% 0.121 -0.1469)
OKLCHoklch(46.21% 0.19 309.5)
XYZxyz(15.4552, 8.4025, 36.8767)
Luminance0.0840 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782AA6 #58A62A
analogous
#3A2AA6 #782AA6 #A62A96
triadic
#782AA6 #A6782A #2AA678
tetradic
#782AA6 #A63A2A #58A62A #2A96A6
square
#782AA6 #A63A2A #58A62A #2A96A6
split-complementary
#782AA6 #96A62A #2AA63A
monochromatic
#311144 #551E75 #782AA6 #993FCE #B370DB

Accessibility & contrast

On white

7.83
#782AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#782AA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782AA6
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782AA6#FFFFFF#000000##FFFFFF
##782AA61.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA9
Deuteranopia (green-blind)
#0753A3
Tritanopia (blue-blind)
#714766
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #782aa6;
/* rgb */ color: rgb(120, 42, 166);
/* oklch */ color: oklch(46.2% 0.190 309.5);
Tailwind
colors: {
  custom: {
    50: '#a36cc1',
    500: '#782aa6',
    950: '#000000',
  },
}
SCSS
$custom: #782aa6;
$custom-light: #a36cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#782aa6",
  "rgb": {
    "r": 120,
    "g": 42,
    "b": 166
  },
  "hsl": {
    "h": 277.742,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.4621,
    "c": 0.19032,
    "h": 309.5
  },
  "luminance": 0.08402
}

Semantic roles & 50–950 ramp

primary
#782AA6
secondary
#8BC26A
accent
#E34580
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #782AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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