#782CB5#782CB5

#782CB5 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.6% C 0.203 H 304.9°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#782CB5
RGBrgb(120, 44, 181)
HSLhsl(273, 61%, 44%)
HSVhsv(273, 76%, 71%)
CMYKcmyk(33.7%, 75.7%, 0%, 29%)
CIE-LABlab(36.23, 56.48, -58.44)
CIE-LCHlch(36.23, 81.28, 314.02°)
OKLaboklab(47.58% 0.1162 -0.1664)
OKLCHoklch(47.58% 0.203 304.9)
XYZxyz(16.9850, 9.1307, 44.5747)
Luminance0.0913 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782CB5 #69B52C
analogous
#342CB5 #782CB5 #B52CAE
triadic
#782CB5 #B5782C #2CB578
tetradic
#782CB5 #B5342C #69B52C #2CAEB5
square
#782CB5 #B5342C #69B52C #2CAEB5
split-complementary
#782CB5 #AEB52C #2CB534
monochromatic
#371453 #572084 #782CB5 #974BD3 #B37CDF

Accessibility & contrast

On white

7.43
#782CB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #782CB5
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782CB5#FFFFFF#000000##FFFFFF
##782CB51.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B9
Deuteranopia (green-blind)
#0055B2
Tritanopia (blue-blind)
#6C4E6F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #782cb5;
/* rgb */ color: rgb(120, 44, 181);
/* oklch */ color: oklch(47.6% 0.203 304.9);
Tailwind
colors: {
  custom: {
    50: '#a56dcc',
    500: '#782cb5',
    950: '#000000',
  },
}
SCSS
$custom: #782cb5;
$custom-light: #a56dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#782cb5",
  "rgb": {
    "r": 120,
    "g": 44,
    "b": 181
  },
  "hsl": {
    "h": 273.285,
    "s": 60.889,
    "l": 44.118
  },
  "oklch": {
    "l": 0.47575,
    "c": 0.20293,
    "h": 304.9
  },
  "luminance": 0.09131
}

Semantic roles & 50–950 ramp

primary
#782CB5
secondary
#9AC875
accent
#E4448B
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #782CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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