#782EA8#782EA8

#782EA8 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.8% C 0.188 H 308.5°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#782EA8
RGBrgb(120, 46, 168)
HSLhsl(276, 57%, 42%)
HSVhsv(276, 73%, 66%)
CMYKcmyk(28.6%, 72.6%, 0%, 34.1%)
CIE-LABlab(35.55, 52.68, -51.81)
CIE-LCHlch(35.55, 73.89, 315.47°)
OKLaboklab(46.78% 0.1167 -0.1469)
OKLCHoklch(46.78% 0.188 308.5)
XYZxyz(15.7892, 8.7745, 37.9001)
Luminance0.0877 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782EA8 #5EA82E
analogous
#3B2EA8 #782EA8 #A82E9B
triadic
#782EA8 #A8782E #2EA878
tetradic
#782EA8 #A83B2E #5EA82E #2E9BA8
square
#782EA8 #A83B2E #5EA82E #2E9BA8
split-complementary
#782EA8 #9BA82E #2EA83B
monochromatic
#331448 #562178 #782EA8 #9847CD #B377DA

Accessibility & contrast

On white

7.62
#782EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #782EA8
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782EA8#FFFFFF#000000##FFFFFF
##782EA81.007.622.757.62
#FFFFFF7.621.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AC
Deuteranopia (green-blind)
#0B54A5
Tritanopia (blue-blind)
#714A68
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #782ea8;
/* rgb */ color: rgb(120, 46, 168);
/* oklch */ color: oklch(46.8% 0.188 308.5);
Tailwind
colors: {
  custom: {
    50: '#a36ec3',
    500: '#782ea8',
    950: '#000000',
  },
}
SCSS
$custom: #782ea8;
$custom-light: #a36ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#782ea8",
  "rgb": {
    "r": 120,
    "g": 46,
    "b": 168
  },
  "hsl": {
    "h": 276.393,
    "s": 57.009,
    "l": 41.961
  },
  "oklch": {
    "l": 0.46779,
    "c": 0.18763,
    "h": 308.5
  },
  "luminance": 0.08774
}

Semantic roles & 50–950 ramp

primary
#782EA8
secondary
#90C270
accent
#E04884
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #782EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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