#782EA1#782EA1

#782EA1 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.3% C 0.181 H 310.7°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#782EA1
RGBrgb(120, 46, 161)
HSLhsl(279, 56%, 41%)
HSVhsv(279, 71%, 63%)
CMYKcmyk(25.5%, 71.4%, 0%, 36.9%)
CIE-LABlab(35.04, 51.11, -48.42)
CIE-LCHlch(35.04, 70.40, 316.55°)
OKLaboklab(46.26% 0.1177 -0.1369)
OKLCHoklch(46.26% 0.181 310.7)
XYZxyz(15.1545, 8.5206, 34.5576)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782EA1 #57A12E
analogous
#3E2EA1 #782EA1 #A12E90
triadic
#782EA1 #A1782E #2EA178
tetradic
#782EA1 #A13E2E #57A12E #2E90A1
square
#782EA1 #A13E2E #57A12E #2E90A1
split-complementary
#782EA1 #90A12E #2EA13E
monochromatic
#311342 #552071 #782EA1 #9943C9 #B373D7

Accessibility & contrast

On white

7.77
#782EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#782EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782EA1
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782EA1#FFFFFF#000000##FFFFFF
##782EA11.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA4
Deuteranopia (green-blind)
#1B549E
Tritanopia (blue-blind)
#734764
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #782ea1;
/* rgb */ color: rgb(120, 46, 161);
/* oklch */ color: oklch(46.3% 0.181 310.7);
Tailwind
colors: {
  custom: {
    50: '#a36dbd',
    500: '#782ea1',
    950: '#000000',
  },
}
SCSS
$custom: #782ea1;
$custom-light: #a36dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#782ea1",
  "rgb": {
    "r": 120,
    "g": 46,
    "b": 161
  },
  "hsl": {
    "h": 278.609,
    "s": 55.556,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46264,
    "c": 0.18058,
    "h": 310.7
  },
  "luminance": 0.0852
}

Semantic roles & 50–950 ramp

primary
#782EA1
secondary
#8ABE6C
accent
#DF497E
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #782EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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