#784E9D#784E9D

#784E9D is a mid, vivid violet. Relative luminance 0.119; OKLCH L 50.5% C 0.128 H 307.0°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#784E9D
RGBrgb(120, 78, 157)
HSLhsl(272, 34%, 46%)
HSVhsv(272, 50%, 62%)
CMYKcmyk(23.6%, 50.3%, 0%, 38.4%)
CIE-LABlab(41.02, 33.46, -36.46)
CIE-LCHlch(41.02, 49.48, 312.55°)
OKLaboklab(50.54% 0.0768 -0.1021)
OKLCHoklch(50.54% 0.128 307)
XYZxyz(16.5547, 11.8763, 33.3120)
Luminance0.1188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784E9D #739D4E
analogous
#504E9D #784E9D #9D4E9A
triadic
#784E9D #9D784E #4E9D78
tetradic
#784E9D #9D504E #739D4E #4E9A9D
square
#784E9D #9D504E #739D4E #4E9A9D
split-complementary
#784E9D #9A9D4E #4E9D50
monochromatic
#39254B #593A74 #784E9D #9670B8 #B499CC

Accessibility & contrast

On white

6.22
#784E9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#784E9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784E9D
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784E9D#FFFFFF#000000##FFFFFF
##784E9D1.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385FA0
Deuteranopia (green-blind)
#44619B
Tritanopia (blue-blind)
#725C6E
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #784e9d;
/* rgb */ color: rgb(120, 78, 157);
/* oklch */ color: oklch(50.5% 0.128 307.0);
Tailwind
colors: {
  custom: {
    50: '#a181ba',
    500: '#784e9d',
    950: '#000000',
  },
}
SCSS
$custom: #784e9d;
$custom-light: #a181ba;
$custom-dark: #000000;
JSON
{
  "hex": "#784e9d",
  "rgb": {
    "r": 120,
    "g": 78,
    "b": 157
  },
  "hsl": {
    "h": 271.899,
    "s": 33.617,
    "l": 46.078
  },
  "oklch": {
    "l": 0.50538,
    "c": 0.12773,
    "h": 307
  },
  "luminance": 0.11876
}

Semantic roles & 50–950 ramp

primary
#784E9D
secondary
#A2B98E
accent
#CA5E90
background
#FAF7FB
surface
#F4EEF6
border
#CEC9D0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #784E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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