#784CB2#784CB2

#784CB2 is a mid, vivid violet. Relative luminance 0.124; OKLCH L 51.5% C 0.157 H 300.9°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#784CB2
RGBrgb(120, 76, 178)
HSLhsl(266, 40%, 50%)
HSVhsv(266, 57%, 70%)
CMYKcmyk(32.6%, 57.3%, 0%, 30.2%)
CIE-LABlab(41.81, 39.88, -47.67)
CIE-LCHlch(41.81, 62.15, 309.92°)
OKLaboklab(51.52% 0.0808 -0.1349)
OKLCHoklch(51.52% 0.157 300.9)
XYZxyz(18.3642, 12.3762, 43.5322)
Luminance0.1238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784CB2 #86B24C
analogous
#4C53B2 #784CB2 #AB4CB2
triadic
#784CB2 #B2784C #4CB278
tetradic
#784CB2 #B24C53 #86B24C #4CB2AB
square
#784CB2 #B24C53 #86B24C #4CB2AB
split-complementary
#784CB2 #B2AB4C #53B24C
monochromatic
#3E275C #5B3A87 #784CB2 #9876C5 #B9A1D7

Accessibility & contrast

On white

6.04
#784CB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#784CB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784CB2
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784CB2#FFFFFF#000000##FFFFFF
##784CB21.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F62B5
Deuteranopia (green-blind)
#3062B0
Tritanopia (blue-blind)
#6C6178
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #784cb2;
/* rgb */ color: rgb(120, 76, 178);
/* oklch */ color: oklch(51.5% 0.157 300.9);
Tailwind
colors: {
  custom: {
    50: '#a280ca',
    500: '#784cb2',
    950: '#000000',
  },
}
SCSS
$custom: #784cb2;
$custom-light: #a280ca;
$custom-dark: #000000;
JSON
{
  "hex": "#784cb2",
  "rgb": {
    "r": 120,
    "g": 76,
    "b": 178
  },
  "hsl": {
    "h": 265.882,
    "s": 40.157,
    "l": 49.804
  },
  "oklch": {
    "l": 0.51519,
    "c": 0.15723,
    "h": 300.9
  },
  "luminance": 0.12376
}

Semantic roles & 50–950 ramp

primary
#784CB2
secondary
#B0C496
accent
#D0589C
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #784CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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