#784CB6#784CB6

#784CB6 is a mid, vivid violet. Relative luminance 0.125; OKLCH L 51.8% C 0.162 H 299.9°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#784CB6
RGBrgb(120, 76, 182)
HSLhsl(265, 42%, 51%)
HSVhsv(265, 58%, 71%)
CMYKcmyk(34.1%, 58.2%, 0%, 28.6%)
CIE-LABlab(42.06, 40.92, -49.62)
CIE-LCHlch(42.06, 64.31, 309.51°)
OKLaboklab(51.79% 0.0808 -0.1406)
OKLCHoklch(51.79% 0.162 299.9)
XYZxyz(18.7716, 12.5392, 45.6782)
Luminance0.1254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784CB6 #8AB64C
analogous
#4C55B6 #784CB6 #AD4CB6
triadic
#784CB6 #B6784C #4CB678
tetradic
#784CB6 #B64C55 #8AB64C #4CB6AD
square
#784CB6 #B64C55 #8AB64C #4CB6AD
split-complementary
#784CB6 #B6AD4C #55B64C
monochromatic
#3F2760 #5B398C #784CB6 #9977C8 #BAA3D9

Accessibility & contrast

On white

5.99
#784CB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#784CB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784CB6
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784CB6#FFFFFF#000000##FFFFFF
##784CB61.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1763B9
Deuteranopia (green-blind)
#2B62B4
Tritanopia (blue-blind)
#6B627A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #784cb6;
/* rgb */ color: rgb(120, 76, 182);
/* oklch */ color: oklch(51.8% 0.162 299.9);
Tailwind
colors: {
  custom: {
    50: '#a380cc',
    500: '#784cb6',
    950: '#000000',
  },
}
SCSS
$custom: #784cb6;
$custom-light: #a380cc;
$custom-dark: #000000;
JSON
{
  "hex": "#784cb6",
  "rgb": {
    "r": 120,
    "g": 76,
    "b": 182
  },
  "hsl": {
    "h": 264.906,
    "s": 42.063,
    "l": 50.588
  },
  "oklch": {
    "l": 0.51786,
    "c": 0.16217,
    "h": 299.9
  },
  "luminance": 0.12539
}

Semantic roles & 50–950 ramp

primary
#784CB6
secondary
#B3C697
accent
#D2569E
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #784CB6

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

Preview Lab → · Contrast checker → · Palette generator →

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