#782EA7#782EA7

#782EA7 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.7% C 0.187 H 308.8°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#782EA7
RGBrgb(120, 46, 167)
HSLhsl(277, 57%, 42%)
HSVhsv(277, 72%, 65%)
CMYKcmyk(28.1%, 72.5%, 0%, 34.5%)
CIE-LABlab(35.47, 52.45, -51.33)
CIE-LCHlch(35.47, 73.39, 315.62°)
OKLaboklab(46.71% 0.1169 -0.1455)
OKLCHoklch(46.71% 0.187 308.8)
XYZxyz(15.6964, 8.7374, 37.4113)
Luminance0.0874 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782EA7 #5DA72E
analogous
#3B2EA7 #782EA7 #A72E9A
triadic
#782EA7 #A7782E #2EA778
tetradic
#782EA7 #A73B2E #5DA72E #2E9AA7
square
#782EA7 #A73B2E #5DA72E #2E9AA7
split-complementary
#782EA7 #9AA72E #2EA73B
monochromatic
#331447 #562177 #782EA7 #9846CC #B376D9

Accessibility & contrast

On white

7.64
#782EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#782EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782EA7
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782EA7#FFFFFF#000000##FFFFFF
##782EA71.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AA
Deuteranopia (green-blind)
#0E54A4
Tritanopia (blue-blind)
#714A68
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #782ea7;
/* rgb */ color: rgb(120, 46, 167);
/* oklch */ color: oklch(46.7% 0.187 308.8);
Tailwind
colors: {
  custom: {
    50: '#a36ec2',
    500: '#782ea7',
    950: '#000000',
  },
}
SCSS
$custom: #782ea7;
$custom-light: #a36ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#782ea7",
  "rgb": {
    "r": 120,
    "g": 46,
    "b": 167
  },
  "hsl": {
    "h": 276.694,
    "s": 56.808,
    "l": 41.765
  },
  "oklch": {
    "l": 0.46705,
    "c": 0.18663,
    "h": 308.8
  },
  "luminance": 0.08737
}

Semantic roles & 50–950 ramp

primary
#782EA7
secondary
#8FC170
accent
#E04883
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #782EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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