#782ED7#782ED7

#782ED7 is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.6% C 0.235 H 296.7°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#782ED7
RGBrgb(120, 46, 215)
HSLhsl(266, 68%, 51%)
HSVhsv(266, 79%, 84%)
CMYKcmyk(44.2%, 78.6%, 0%, 15.7%)
CIE-LABlab(39.33, 63.70, -73.23)
CIE-LCHlch(39.33, 97.06, 311.02°)
OKLaboklab(50.61% 0.1056 -0.2098)
OKLCHoklch(50.61% 0.235 296.7)
XYZxyz(20.9852, 10.8529, 65.2660)
Luminance0.1085 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782ED7 #8DD72E
analogous
#2E38D7 #782ED7 #CC2ED7
triadic
#782ED7 #D7782E #2ED778
tetradic
#782ED7 #D72E38 #8DD72E #2ED7CC
square
#782ED7 #D72E38 #8DD72E #2ED7CC
split-complementary
#782ED7 #D7CC2E #38D72E
monochromatic
#3F1674 #5B20A8 #782ED7 #9961E1 #BA95EB

Accessibility & contrast

On white

6.62
#782ED7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#782ED7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #782ED7
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782ED7#FFFFFF#000000##FFFFFF
##782ED71.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DDC
Deuteranopia (green-blind)
#005AD4
Tritanopia (blue-blind)
#5E5E83
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #782ed7;
/* rgb */ color: rgb(120, 46, 215);
/* oklch */ color: oklch(50.6% 0.235 296.7);
Tailwind
colors: {
  custom: {
    50: '#a870e5',
    500: '#782ed7',
    950: '#000000',
  },
}
SCSS
$custom: #782ed7;
$custom-light: #a870e5;
$custom-dark: #000000;
JSON
{
  "hex": "#782ed7",
  "rgb": {
    "r": 120,
    "g": 46,
    "b": 215
  },
  "hsl": {
    "h": 266.272,
    "s": 67.871,
    "l": 51.176
  },
  "oklch": {
    "l": 0.50612,
    "c": 0.23492,
    "h": 296.7
  },
  "luminance": 0.10853
}

Semantic roles & 50–950 ramp

primary
#782ED7
secondary
#B5D68B
accent
#EB3D9F
background
#FBF7FE
surface
#F6EDFC
border
#D0C8D5
text
#110816
muted
#807B84

Preview Lab

Preview with #782ED7

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

Preview Lab → · Contrast checker → · Palette generator →

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