#782EB5#782EB5

#782EB5 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.8% C 0.201 H 304.7°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#782EB5
RGBrgb(120, 46, 181)
HSLhsl(273, 59%, 45%)
HSVhsv(273, 75%, 71%)
CMYKcmyk(33.7%, 74.6%, 0%, 29%)
CIE-LABlab(36.52, 55.65, -57.97)
CIE-LCHlch(36.52, 80.36, 313.83°)
OKLaboklab(47.78% 0.1143 -0.165)
OKLCHoklch(47.78% 0.201 304.7)
XYZxyz(17.0613, 9.2833, 44.6001)
Luminance0.0928 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782EB5 #6BB52E
analogous
#352EB5 #782EB5 #B52EAF
triadic
#782EB5 #B5782E #2EB578
tetradic
#782EB5 #B5352E #6BB52E #2EAFB5
square
#782EB5 #B5352E #6BB52E #2EAFB5
split-complementary
#782EB5 #AFB52E #2EB535
monochromatic
#371553 #582284 #782EB5 #964ED2 #B37FDE

Accessibility & contrast

On white

7.35
#782EB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #782EB5
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782EB5#FFFFFF#000000##FFFFFF
##782EB51.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B9
Deuteranopia (green-blind)
#0056B2
Tritanopia (blue-blind)
#6C4F6F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #782eb5;
/* rgb */ color: rgb(120, 46, 181);
/* oklch */ color: oklch(47.8% 0.201 304.7);
Tailwind
colors: {
  custom: {
    50: '#a46ecc',
    500: '#782eb5',
    950: '#000000',
  },
}
SCSS
$custom: #782eb5;
$custom-light: #a46ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#782eb5",
  "rgb": {
    "r": 120,
    "g": 46,
    "b": 181
  },
  "hsl": {
    "h": 272.889,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.47779,
    "c": 0.20077,
    "h": 304.7
  },
  "luminance": 0.09283
}

Semantic roles & 50–950 ramp

primary
#782EB5
secondary
#9CC778
accent
#E3458C
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #782EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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