#782CA4#782CA4

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

Color values

HEX#782CA4
RGBrgb(120, 44, 164)
HSLhsl(278, 58%, 41%)
HSVhsv(278, 73%, 64%)
CMYKcmyk(26.8%, 73.2%, 0%, 35.7%)
CIE-LABlab(34.95, 52.64, -50.37)
CIE-LCHlch(34.95, 72.86, 316.26°)
OKLaboklab(46.27% 0.1194 -0.1427)
OKLCHoklch(46.27% 0.186 309.9)
XYZxyz(15.3459, 8.4751, 35.9422)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782CA4 #58A42C
analogous
#3C2CA4 #782CA4 #A42C94
triadic
#782CA4 #A4782C #2CA478
tetradic
#782CA4 #A43C2C #58A42C #2C94A4
square
#782CA4 #A43C2C #58A42C #2C94A4
split-complementary
#782CA4 #94A42C #2CA43C
monochromatic
#311243 #551F74 #782CA4 #9941CC #B371D9

Accessibility & contrast

On white

7.79
#782CA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #782CA4
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782CA4#FFFFFF#000000##FFFFFF
##782CA41.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA7
Deuteranopia (green-blind)
#1253A1
Tritanopia (blue-blind)
#724765
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #782ca4;
/* rgb */ color: rgb(120, 44, 164);
/* oklch */ color: oklch(46.3% 0.186 309.9);
Tailwind
colors: {
  custom: {
    50: '#a36cc0',
    500: '#782ca4',
    950: '#000000',
  },
}
SCSS
$custom: #782ca4;
$custom-light: #a36cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#782ca4",
  "rgb": {
    "r": 120,
    "g": 44,
    "b": 164
  },
  "hsl": {
    "h": 278,
    "s": 57.692,
    "l": 40.784
  },
  "oklch": {
    "l": 0.46267,
    "c": 0.18601,
    "h": 309.9
  },
  "luminance": 0.08475
}

Semantic roles & 50–950 ramp

primary
#782CA4
secondary
#8BC06B
accent
#E1477F
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #782CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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