#782EB6#782EB6

#782EB6 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.9% C 0.202 H 304.4°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#782EB6
RGBrgb(120, 46, 182)
HSLhsl(273, 60%, 45%)
HSVhsv(273, 75%, 71%)
CMYKcmyk(34.1%, 74.7%, 0%, 28.6%)
CIE-LABlab(36.60, 55.89, -58.44)
CIE-LCHlch(36.60, 80.86, 313.72°)
OKLaboklab(47.86% 0.1141 -0.1664)
OKLCHoklch(47.86% 0.202 304.4)
XYZxyz(17.1643, 9.3245, 45.1425)
Luminance0.0932 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782EB6 #6CB62E
analogous
#342EB6 #782EB6 #B62EB0
triadic
#782EB6 #B6782E #2EB678
tetradic
#782EB6 #B6342E #6CB62E #2EB0B6
square
#782EB6 #B6342E #6CB62E #2EB0B6
split-complementary
#782EB6 #B0B62E #2EB634
monochromatic
#381554 #582285 #782EB6 #964FD2 #B380DF

Accessibility & contrast

On white

7.33
#782EB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#782EB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782EB6
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782EB6#FFFFFF#000000##FFFFFF
##782EB61.007.332.867.33
#FFFFFF7.331.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BA
Deuteranopia (green-blind)
#0056B3
Tritanopia (blue-blind)
#6C5070
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #782eb6;
/* rgb */ color: rgb(120, 46, 182);
/* oklch */ color: oklch(47.9% 0.202 304.4);
Tailwind
colors: {
  custom: {
    50: '#a46ecd',
    500: '#782eb6',
    950: '#000000',
  },
}
SCSS
$custom: #782eb6;
$custom-light: #a46ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#782eb6",
  "rgb": {
    "r": 120,
    "g": 46,
    "b": 182
  },
  "hsl": {
    "h": 272.647,
    "s": 59.649,
    "l": 44.706
  },
  "oklch": {
    "l": 0.47858,
    "c": 0.20178,
    "h": 304.4
  },
  "luminance": 0.09324
}

Semantic roles & 50–950 ramp

primary
#782EB6
secondary
#9CC878
accent
#E3458D
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #782EB6

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

Preview Lab → · Contrast checker → · Palette generator →

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