#782EB2#782EB2

#782EB2 is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.5% C 0.198 H 305.5°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#782EB2
RGBrgb(120, 46, 178)
HSLhsl(274, 59%, 44%)
HSVhsv(274, 74%, 70%)
CMYKcmyk(32.6%, 74.2%, 0%, 30.2%)
CIE-LABlab(36.29, 54.96, -56.57)
CIE-LCHlch(36.29, 78.87, 314.17°)
OKLaboklab(47.54% 0.1149 -0.1609)
OKLCHoklch(47.54% 0.198 305.5)
XYZxyz(16.7568, 9.1615, 42.9964)
Luminance0.0916 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782EB2 #68B22E
analogous
#362EB2 #782EB2 #B22EAA
triadic
#782EB2 #B2782E #2EB278
tetradic
#782EB2 #B2362E #68B22E #2EAAB2
square
#782EB2 #B2362E #68B22E #2EAAB2
split-complementary
#782EB2 #AAB22E #2EB236
monochromatic
#361551 #572181 #782EB2 #974CD1 #B37DDD

Accessibility & contrast

On white

7.41
#782EB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#782EB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782EB2
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782EB2#FFFFFF#000000##FFFFFF
##782EB21.007.412.837.41
#FFFFFF7.411.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B6
Deuteranopia (green-blind)
#0056AF
Tritanopia (blue-blind)
#6D4E6E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #782eb2;
/* rgb */ color: rgb(120, 46, 178);
/* oklch */ color: oklch(47.5% 0.198 305.5);
Tailwind
colors: {
  custom: {
    50: '#a46eca',
    500: '#782eb2',
    950: '#000000',
  },
}
SCSS
$custom: #782eb2;
$custom-light: #a46eca;
$custom-dark: #000000;
JSON
{
  "hex": "#782eb2",
  "rgb": {
    "r": 120,
    "g": 46,
    "b": 178
  },
  "hsl": {
    "h": 273.636,
    "s": 58.929,
    "l": 43.922
  },
  "oklch": {
    "l": 0.47543,
    "c": 0.19774,
    "h": 305.5
  },
  "luminance": 0.09161
}

Semantic roles & 50–950 ramp

primary
#782EB2
secondary
#99C676
accent
#E2468A
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #782EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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