#782EB8#782EB8

#782EB8 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.0% C 0.204 H 303.9°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#782EB8
RGBrgb(120, 46, 184)
HSLhsl(272, 60%, 45%)
HSVhsv(272, 75%, 72%)
CMYKcmyk(34.8%, 75%, 0%, 27.8%)
CIE-LABlab(36.76, 56.35, -59.37)
CIE-LCHlch(36.76, 81.85, 313.51°)
OKLaboklab(48.02% 0.1137 -0.1691)
OKLCHoklch(48.02% 0.204 303.9)
XYZxyz(17.3725, 9.4078, 46.2388)
Luminance0.0941 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782EB8 #6EB82E
analogous
#332EB8 #782EB8 #B82EB3
triadic
#782EB8 #B8782E #2EB878
tetradic
#782EB8 #B8332E #6EB82E #2EB3B8
square
#782EB8 #B8332E #6EB82E #2EB3B8
split-complementary
#782EB8 #B3B82E #2EB833
monochromatic
#381656 #582287 #782EB8 #9650D3 #B481DF

Accessibility & contrast

On white

7.29
#782EB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#782EB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782EB8
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782EB8#FFFFFF#000000##FFFFFF
##782EB81.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BC
Deuteranopia (green-blind)
#0056B5
Tritanopia (blue-blind)
#6B5171
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #782eb8;
/* rgb */ color: rgb(120, 46, 184);
/* oklch */ color: oklch(48.0% 0.204 303.9);
Tailwind
colors: {
  custom: {
    50: '#a56ece',
    500: '#782eb8',
    950: '#000000',
  },
}
SCSS
$custom: #782eb8;
$custom-light: #a56ece;
$custom-dark: #000000;
JSON
{
  "hex": "#782eb8",
  "rgb": {
    "r": 120,
    "g": 46,
    "b": 184
  },
  "hsl": {
    "h": 272.174,
    "s": 60,
    "l": 45.098
  },
  "oklch": {
    "l": 0.48016,
    "c": 0.20379,
    "h": 303.9
  },
  "luminance": 0.09408
}

Semantic roles & 50–950 ramp

primary
#782EB8
secondary
#9EC879
accent
#E3458E
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #782EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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