#784CB1#784CB1

#784CB1 is a mid, vivid violet. Relative luminance 0.123; OKLCH L 51.5% C 0.156 H 301.2°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#784CB1
RGBrgb(120, 76, 177)
HSLhsl(266, 40%, 50%)
HSVhsv(266, 57%, 69%)
CMYKcmyk(32.2%, 57.1%, 0%, 30.6%)
CIE-LABlab(41.75, 39.63, -47.18)
CIE-LCHlch(41.75, 61.61, 310.03°)
OKLaboklab(51.45% 0.0808 -0.1334)
OKLCHoklch(51.45% 0.156 301.2)
XYZxyz(18.2641, 12.3362, 43.0054)
Luminance0.1234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784CB1 #85B14C
analogous
#4C52B1 #784CB1 #AB4CB1
triadic
#784CB1 #B1784C #4CB178
tetradic
#784CB1 #B14C52 #85B14C #4CB1AB
square
#784CB1 #B14C52 #85B14C #4CB1AB
split-complementary
#784CB1 #B1AB4C #52B14C
monochromatic
#3E275B #5B3A86 #784CB1 #9876C4 #B8A1D7

Accessibility & contrast

On white

6.06
#784CB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#784CB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784CB1
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784CB1#FFFFFF#000000##FFFFFF
##784CB11.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2062B4
Deuteranopia (green-blind)
#3162AF
Tritanopia (blue-blind)
#6D6077
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #784cb1;
/* rgb */ color: rgb(120, 76, 177);
/* oklch */ color: oklch(51.5% 0.156 301.2);
Tailwind
colors: {
  custom: {
    50: '#a280c9',
    500: '#784cb1',
    950: '#000000',
  },
}
SCSS
$custom: #784cb1;
$custom-light: #a280c9;
$custom-dark: #000000;
JSON
{
  "hex": "#784cb1",
  "rgb": {
    "r": 120,
    "g": 76,
    "b": 177
  },
  "hsl": {
    "h": 266.139,
    "s": 39.921,
    "l": 49.608
  },
  "oklch": {
    "l": 0.51453,
    "c": 0.15599,
    "h": 301.2
  },
  "luminance": 0.12336
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #784CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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