#782EAA#782EAA

#782EAA is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.9% C 0.190 H 307.9°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#782EAA
RGBrgb(120, 46, 170)
HSLhsl(276, 57%, 42%)
HSVhsv(276, 73%, 67%)
CMYKcmyk(29.4%, 72.9%, 0%, 33.3%)
CIE-LABlab(35.69, 53.13, -52.77)
CIE-LCHlch(35.69, 74.89, 315.19°)
OKLaboklab(46.93% 0.1164 -0.1497)
OKLCHoklch(46.93% 0.19 307.9)
XYZxyz(15.9769, 8.8496, 38.8889)
Luminance0.0885 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782EAA #60AA2E
analogous
#3A2EAA #782EAA #AA2E9E
triadic
#782EAA #AA782E #2EAA78
tetradic
#782EAA #AA3A2E #60AA2E #2E9EAA
square
#782EAA #AA3A2E #60AA2E #2E9EAA
split-complementary
#782EAA #9EAA2E #2EAA3A
monochromatic
#34144A #56217A #782EAA #9848CD #B378DA

Accessibility & contrast

On white

7.58
#782EAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#782EAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782EAA
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782EAA#FFFFFF#000000##FFFFFF
##782EAA1.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AE
Deuteranopia (green-blind)
#0355A7
Tritanopia (blue-blind)
#704B69
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #782eaa;
/* rgb */ color: rgb(120, 46, 170);
/* oklch */ color: oklch(46.9% 0.190 307.9);
Tailwind
colors: {
  custom: {
    50: '#a46ec4',
    500: '#782eaa',
    950: '#000000',
  },
}
SCSS
$custom: #782eaa;
$custom-light: #a46ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#782eaa",
  "rgb": {
    "r": 120,
    "g": 46,
    "b": 170
  },
  "hsl": {
    "h": 275.806,
    "s": 57.407,
    "l": 42.353
  },
  "oklch": {
    "l": 0.4693,
    "c": 0.18965,
    "h": 307.9
  },
  "luminance": 0.08849
}

Semantic roles & 50–950 ramp

primary
#782EAA
secondary
#92C371
accent
#E14785
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #782EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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