#782EA6#782EA6

#782EA6 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.6% C 0.186 H 309.1°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#782EA6
RGBrgb(120, 46, 166)
HSLhsl(277, 57%, 42%)
HSVhsv(277, 72%, 65%)
CMYKcmyk(27.7%, 72.3%, 0%, 34.9%)
CIE-LABlab(35.40, 52.23, -50.85)
CIE-LCHlch(35.40, 72.89, 315.76°)
OKLaboklab(46.63% 0.117 -0.1441)
OKLCHoklch(46.63% 0.186 309.1)
XYZxyz(15.6043, 8.7005, 36.9263)
Luminance0.0870 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782EA6 #5CA62E
analogous
#3C2EA6 #782EA6 #A62E98
triadic
#782EA6 #A6782E #2EA678
tetradic
#782EA6 #A63C2E #5CA62E #2E98A6
square
#782EA6 #A63C2E #5CA62E #2E98A6
split-complementary
#782EA6 #98A62E #2EA63C
monochromatic
#331346 #552176 #782EA6 #9846CC #B376D9

Accessibility & contrast

On white

7.66
#782EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#782EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782EA6
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782EA6#FFFFFF#000000##FFFFFF
##782EA61.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A9
Deuteranopia (green-blind)
#1154A3
Tritanopia (blue-blind)
#714967
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #782ea6;
/* rgb */ color: rgb(120, 46, 166);
/* oklch */ color: oklch(46.6% 0.186 309.1);
Tailwind
colors: {
  custom: {
    50: '#a36ec1',
    500: '#782ea6',
    950: '#000000',
  },
}
SCSS
$custom: #782ea6;
$custom-light: #a36ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#782ea6",
  "rgb": {
    "r": 120,
    "g": 46,
    "b": 166
  },
  "hsl": {
    "h": 277,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.4663,
    "c": 0.18562,
    "h": 309.1
  },
  "luminance": 0.087
}

Semantic roles & 50–950 ramp

primary
#782EA6
secondary
#8EC16F
accent
#E04882
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #782EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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