#782CA9#782CA9

#782CA9 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.6% C 0.191 H 308.4°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#782CA9
RGBrgb(120, 44, 169)
HSLhsl(276, 59%, 42%)
HSVhsv(276, 74%, 66%)
CMYKcmyk(29%, 74%, 0%, 33.7%)
CIE-LABlab(35.32, 53.75, -52.78)
CIE-LCHlch(35.32, 75.33, 315.52°)
OKLaboklab(46.64% 0.1185 -0.1497)
OKLCHoklch(46.64% 0.191 308.4)
XYZxyz(15.8064, 8.6593, 38.3672)
Luminance0.0866 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782CA9 #5DA92C
analogous
#3A2CA9 #782CA9 #A92C9C
triadic
#782CA9 #A9782C #2CA978
tetradic
#782CA9 #A93A2C #5DA92C #2C9CA9
square
#782CA9 #A93A2C #5DA92C #2C9CA9
split-complementary
#782CA9 #9CA92C #2CA93A
monochromatic
#331348 #561F78 #782CA9 #9844CE #B374DB

Accessibility & contrast

On white

7.69
#782CA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#782CA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782CA9
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782CA9#FFFFFF#000000##FFFFFF
##782CA91.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AD
Deuteranopia (green-blind)
#0154A6
Tritanopia (blue-blind)
#704968
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #782ca9;
/* rgb */ color: rgb(120, 44, 169);
/* oklch */ color: oklch(46.6% 0.191 308.4);
Tailwind
colors: {
  custom: {
    50: '#a46dc3',
    500: '#782ca9',
    950: '#000000',
  },
}
SCSS
$custom: #782ca9;
$custom-light: #a46dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#782ca9",
  "rgb": {
    "r": 120,
    "g": 44,
    "b": 169
  },
  "hsl": {
    "h": 276.48,
    "s": 58.685,
    "l": 41.765
  },
  "oklch": {
    "l": 0.46642,
    "c": 0.19099,
    "h": 308.4
  },
  "luminance": 0.08659
}

Semantic roles & 50–950 ramp

primary
#782CA9
secondary
#8FC36E
accent
#E24683
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #782CA9

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

Preview Lab → · Contrast checker → · Palette generator →

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