#782CA6#782CA6

#782CA6 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.4% C 0.188 H 309.3°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#782CA6
RGBrgb(120, 44, 166)
HSLhsl(277, 58%, 41%)
HSVhsv(277, 73%, 65%)
CMYKcmyk(27.7%, 73.5%, 0%, 34.9%)
CIE-LABlab(35.10, 53.08, -51.34)
CIE-LCHlch(35.10, 73.85, 315.96°)
OKLaboklab(46.42% 0.1191 -0.1455)
OKLCHoklch(46.42% 0.188 309.3)
XYZxyz(15.5280, 8.5479, 36.9009)
Luminance0.0855 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782CA6 #5AA62C
analogous
#3B2CA6 #782CA6 #A62C97
triadic
#782CA6 #A6782C #2CA678
tetradic
#782CA6 #A63B2C #5AA62C #2C97A6
square
#782CA6 #A63B2C #5AA62C #2C97A6
split-complementary
#782CA6 #97A62C #2CA63B
monochromatic
#321245 #551F76 #782CA6 #9942CD #B373DA

Accessibility & contrast

On white

7.75
#782CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#782CA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782CA6
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782CA6#FFFFFF#000000##FFFFFF
##782CA61.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA9
Deuteranopia (green-blind)
#0C54A3
Tritanopia (blue-blind)
#714866
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #782ca6;
/* rgb */ color: rgb(120, 44, 166);
/* oklch */ color: oklch(46.4% 0.188 309.3);
Tailwind
colors: {
  custom: {
    50: '#a36cc1',
    500: '#782ca6',
    950: '#000000',
  },
}
SCSS
$custom: #782ca6;
$custom-light: #a36cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#782ca6",
  "rgb": {
    "r": 120,
    "g": 44,
    "b": 166
  },
  "hsl": {
    "h": 277.377,
    "s": 58.095,
    "l": 41.176
  },
  "oklch": {
    "l": 0.46416,
    "c": 0.18801,
    "h": 309.3
  },
  "luminance": 0.08548
}

Semantic roles & 50–950 ramp

primary
#782CA6
secondary
#8CC16D
accent
#E14681
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #782CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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