#784CB8#784CB8

#784CB8 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 51.9% C 0.165 H 299.4°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#784CB8
RGBrgb(120, 76, 184)
HSLhsl(264, 43%, 51%)
HSVhsv(264, 59%, 72%)
CMYKcmyk(34.8%, 58.7%, 0%, 27.8%)
CIE-LABlab(42.19, 41.44, -50.58)
CIE-LCHlch(42.19, 65.39, 309.32°)
OKLaboklab(51.92% 0.0808 -0.1434)
OKLCHoklch(51.92% 0.165 299.4)
XYZxyz(18.9798, 12.6225, 46.7745)
Luminance0.1262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784CB8 #8CB84C
analogous
#4C56B8 #784CB8 #AE4CB8
triadic
#784CB8 #B8784C #4CB878
tetradic
#784CB8 #B84C56 #8CB84C #4CB8AE
square
#784CB8 #B84C56 #8CB84C #4CB8AE
split-complementary
#784CB8 #B8AE4C #56B84C
monochromatic
#3F2763 #5B388E #784CB8 #9978C9 #BAA4DB

Accessibility & contrast

On white

5.96
#784CB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#784CB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784CB8
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784CB8#FFFFFF#000000##FFFFFF
##784CB81.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1363BC
Deuteranopia (green-blind)
#2963B6
Tritanopia (blue-blind)
#6A627B
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #784cb8;
/* rgb */ color: rgb(120, 76, 184);
/* oklch */ color: oklch(51.9% 0.165 299.4);
Tailwind
colors: {
  custom: {
    50: '#a380ce',
    500: '#784cb8',
    950: '#000000',
  },
}
SCSS
$custom: #784cb8;
$custom-light: #a380ce;
$custom-dark: #000000;
JSON
{
  "hex": "#784cb8",
  "rgb": {
    "r": 120,
    "g": 76,
    "b": 184
  },
  "hsl": {
    "h": 264.444,
    "s": 43.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.51921,
    "c": 0.16463,
    "h": 299.4
  },
  "luminance": 0.12623
}

Semantic roles & 50–950 ramp

primary
#784CB8
secondary
#B4C898
accent
#D355A0
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#0F0A14
muted
#7F7C82

Preview Lab

Preview with #784CB8

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

Preview Lab → · Contrast checker → · Palette generator →

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