#784D9C#784D9C

#784D9C is a mid, vivid violet. Relative luminance 0.117; OKLCH L 50.3% C 0.128 H 307.5°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#784D9C
RGBrgb(120, 77, 156)
HSLhsl(273, 34%, 46%)
HSVhsv(273, 51%, 61%)
CMYKcmyk(23.1%, 50.6%, 0%, 38.8%)
CIE-LABlab(40.74, 33.80, -36.30)
CIE-LCHlch(40.74, 49.60, 312.95°)
OKLaboklab(50.31% 0.0781 -0.1016)
OKLCHoklch(50.31% 0.128 307.5)
XYZxyz(16.3992, 11.7013, 32.8407)
Luminance0.1170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784D9C #719C4D
analogous
#504D9C #784D9C #9C4D98
triadic
#784D9C #9C784D #4D9C78
tetradic
#784D9C #9C504D #719C4D #4D989C
square
#784D9C #9C504D #719C4D #4D989C
split-complementary
#784D9C #989C4D #4D9C50
monochromatic
#39254A #583973 #784D9C #966FB8 #B497CC

Accessibility & contrast

On white

6.29
#784D9C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#784D9C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784D9C
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784D9C#FFFFFF#000000##FFFFFF
##784D9C1.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375E9F
Deuteranopia (green-blind)
#44619A
Tritanopia (blue-blind)
#735A6D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #784d9c;
/* rgb */ color: rgb(120, 77, 156);
/* oklch */ color: oklch(50.3% 0.128 307.5);
Tailwind
colors: {
  custom: {
    50: '#a180b9',
    500: '#784d9c',
    950: '#000000',
  },
}
SCSS
$custom: #784d9c;
$custom-light: #a180b9;
$custom-dark: #000000;
JSON
{
  "hex": "#784d9c",
  "rgb": {
    "r": 120,
    "g": 77,
    "b": 156
  },
  "hsl": {
    "h": 272.658,
    "s": 33.906,
    "l": 45.686
  },
  "oklch": {
    "l": 0.50311,
    "c": 0.12817,
    "h": 307.5
  },
  "luminance": 0.11701
}

Semantic roles & 50–950 ramp

primary
#784D9C
secondary
#A0B88C
accent
#CA5E8F
background
#FAF7FB
surface
#F4EEF6
border
#CEC9D0
text
#0F0A11
muted
#7F7C80

Preview Lab

Preview with #784D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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