#783CB2#783CB2

#783CB2 is a mid, vivid violet. Relative luminance 0.104; OKLCH L 49.2% C 0.180 H 303.8°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#783CB2
RGBrgb(120, 60, 178)
HSLhsl(271, 50%, 47%)
HSVhsv(271, 66%, 70%)
CMYKcmyk(32.6%, 66.3%, 0%, 30.2%)
CIE-LABlab(38.62, 48.45, -52.80)
CIE-LCHlch(38.62, 71.66, 312.54°)
OKLaboklab(49.2% 0.1003 -0.1499)
OKLCHoklch(49.2% 0.18 303.8)
XYZxyz(17.3956, 10.4392, 43.2094)
Luminance0.1044 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#783CB2 #76B23C
analogous
#3D3CB2 #783CB2 #B23CB1
triadic
#783CB2 #B2783C #3CB278
tetradic
#783CB2 #B23D3C #76B23C #3CB1B2
square
#783CB2 #B23D3C #76B23C #3CB1B2
split-complementary
#783CB2 #B1B23C #3CB23D
monochromatic
#3A1D56 #592D84 #783CB2 #9661CA #B58FD9

Accessibility & contrast

On white

6.80
#783CB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#783CB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #783CB2
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##783CB2#FFFFFF#000000##FFFFFF
##783CB21.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB6
Deuteranopia (green-blind)
#135BAF
Tritanopia (blue-blind)
#6D5672
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #783cb2;
/* rgb */ color: rgb(120, 60, 178);
/* oklch */ color: oklch(49.2% 0.180 303.8);
Tailwind
colors: {
  custom: {
    50: '#a376ca',
    500: '#783cb2',
    950: '#000000',
  },
}
SCSS
$custom: #783cb2;
$custom-light: #a376ca;
$custom-dark: #000000;
JSON
{
  "hex": "#783cb2",
  "rgb": {
    "r": 120,
    "g": 60,
    "b": 178
  },
  "hsl": {
    "h": 270.508,
    "s": 49.58,
    "l": 46.667
  },
  "oklch": {
    "l": 0.49202,
    "c": 0.18036,
    "h": 303.8
  },
  "luminance": 0.10439
}

Semantic roles & 50–950 ramp

primary
#783CB2
secondary
#A4C486
accent
#D94F93
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #783CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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