#782DCA#782DCA

#782DCA is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.4% C 0.223 H 299.6°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#782DCA
RGBrgb(120, 45, 202)
HSLhsl(269, 64%, 48%)
HSVhsv(269, 78%, 79%)
CMYKcmyk(40.6%, 77.7%, 0%, 20.8%)
CIE-LABlab(38.08, 60.99, -67.76)
CIE-LCHlch(38.08, 91.16, 311.99°)
OKLaboklab(49.4% 0.1101 -0.1938)
OKLCHoklch(49.4% 0.223 299.6)
XYZxyz(19.3421, 10.1339, 56.8027)
Luminance0.1013 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782DCA #7FCA2D
analogous
#2D31CA #782DCA #C62DCA
triadic
#782DCA #CA782D #2DCA78
tetradic
#782DCA #CA2D31 #7FCA2D #2DCAC6
square
#782DCA #CA2D31 #7FCA2D #2DCAC6
split-complementary
#782DCA #CAC62D #31CA2D
monochromatic
#3D1766 #5A2298 #782DCA #975ADA #B78CE5

Accessibility & contrast

On white

6.94
#782DCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#782DCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #782DCA
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782DCA#FFFFFF#000000##FFFFFF
##782DCA1.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CE
Deuteranopia (green-blind)
#0058C7
Tritanopia (blue-blind)
#64587B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #782dca;
/* rgb */ color: rgb(120, 45, 202);
/* oklch */ color: oklch(49.4% 0.223 299.6);
Tailwind
colors: {
  custom: {
    50: '#a66fdb',
    500: '#782dca',
    950: '#000000',
  },
}
SCSS
$custom: #782dca;
$custom-light: #a66fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#782dca",
  "rgb": {
    "r": 120,
    "g": 45,
    "b": 202
  },
  "hsl": {
    "h": 268.662,
    "s": 63.563,
    "l": 48.431
  },
  "oklch": {
    "l": 0.49399,
    "c": 0.22286,
    "h": 299.6
  },
  "luminance": 0.10134
}

Semantic roles & 50–950 ramp

primary
#782DCA
secondary
#ABCF83
accent
#E74198
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100815
muted
#7F7B83

Preview Lab

Preview with #782DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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