#782CA5#782CA5

#782CA5 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.3% C 0.187 H 309.6°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#782CA5
RGBrgb(120, 44, 165)
HSLhsl(278, 58%, 41%)
HSVhsv(278, 73%, 65%)
CMYKcmyk(27.3%, 73.3%, 0%, 35.3%)
CIE-LABlab(35.03, 52.86, -50.86)
CIE-LCHlch(35.03, 73.35, 316.11°)
OKLaboklab(46.34% 0.1192 -0.1441)
OKLCHoklch(46.34% 0.187 309.6)
XYZxyz(15.4366, 8.5114, 36.4197)
Luminance0.0851 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782CA5 #59A52C
analogous
#3B2CA5 #782CA5 #A52C95
triadic
#782CA5 #A5782C #2CA578
tetradic
#782CA5 #A53B2C #59A52C #2C95A5
square
#782CA5 #A53B2C #59A52C #2C95A5
split-complementary
#782CA5 #95A52C #2CA53B
monochromatic
#321244 #551F75 #782CA5 #9942CD #B372D9

Accessibility & contrast

On white

7.77
#782CA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#782CA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782CA5
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782CA5#FFFFFF#000000##FFFFFF
##782CA51.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA8
Deuteranopia (green-blind)
#0F53A2
Tritanopia (blue-blind)
#714866
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #782ca5;
/* rgb */ color: rgb(120, 44, 165);
/* oklch */ color: oklch(46.3% 0.187 309.6);
Tailwind
colors: {
  custom: {
    50: '#a36cc0',
    500: '#782ca5',
    950: '#000000',
  },
}
SCSS
$custom: #782ca5;
$custom-light: #a36cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#782ca5",
  "rgb": {
    "r": 120,
    "g": 44,
    "b": 165
  },
  "hsl": {
    "h": 277.686,
    "s": 57.895,
    "l": 40.98
  },
  "oklch": {
    "l": 0.46341,
    "c": 0.18701,
    "h": 309.6
  },
  "luminance": 0.08511
}

Semantic roles & 50–950 ramp

primary
#782CA5
secondary
#8CC16C
accent
#E14780
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #782CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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