#782CB2#782CB2

#782CB2 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.3% C 0.200 H 305.7°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#782CB2
RGBrgb(120, 44, 178)
HSLhsl(274, 60%, 44%)
HSVhsv(274, 75%, 70%)
CMYKcmyk(32.6%, 75.3%, 0%, 30.2%)
CIE-LABlab(36.00, 55.79, -57.04)
CIE-LCHlch(36.00, 79.79, 314.36°)
OKLaboklab(47.34% 0.1168 -0.1623)
OKLCHoklch(47.34% 0.2 305.7)
XYZxyz(16.6805, 9.0089, 42.9710)
Luminance0.0901 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782CB2 #66B22C
analogous
#352CB2 #782CB2 #B22CA9
triadic
#782CB2 #B2782C #2CB278
tetradic
#782CB2 #B2352C #66B22C #2CA9B2
square
#782CB2 #B2352C #66B22C #2CA9B2
split-complementary
#782CB2 #A9B22C #2CB235
monochromatic
#361450 #572081 #782CB2 #9749D2 #B37ADE

Accessibility & contrast

On white

7.50
#782CB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#782CB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782CB2
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782CB2#FFFFFF#000000##FFFFFF
##782CB21.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #782cb2;
/* rgb */ color: rgb(120, 44, 178);
/* oklch */ color: oklch(47.3% 0.200 305.7);
Tailwind
colors: {
  custom: {
    50: '#a46dca',
    500: '#782cb2',
    950: '#000000',
  },
}
SCSS
$custom: #782cb2;
$custom-light: #a46dca;
$custom-dark: #000000;
JSON
{
  "hex": "#782cb2",
  "rgb": {
    "r": 120,
    "g": 44,
    "b": 178
  },
  "hsl": {
    "h": 274.03,
    "s": 60.36,
    "l": 43.529
  },
  "oklch": {
    "l": 0.47337,
    "c": 0.19995,
    "h": 305.7
  },
  "luminance": 0.09009
}

Semantic roles & 50–950 ramp

primary
#782CB2
secondary
#97C673
accent
#E44489
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #782CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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