#784A9D#784A9D

#784A9D is a mid, vivid violet. Relative luminance 0.113; OKLCH L 49.9% C 0.134 H 307.8°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#784A9D
RGBrgb(120, 74, 157)
HSLhsl(273, 36%, 45%)
HSVhsv(273, 53%, 62%)
CMYKcmyk(23.6%, 52.9%, 0%, 38.4%)
CIE-LABlab(40.12, 35.77, -37.88)
CIE-LCHlch(40.12, 52.09, 313.36°)
OKLaboklab(49.87% 0.0825 -0.1062)
OKLCHoklch(49.87% 0.134 307.8)
XYZxyz(16.2791, 11.3251, 33.2201)
Luminance0.1133 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784A9D #6F9D4A
analogous
#4E4A9D #784A9D #9D4A98
triadic
#784A9D #9D784A #4A9D78
tetradic
#784A9D #9D4E4A #6F9D4A #4A989D
square
#784A9D #9D4E4A #6F9D4A #4A989D
split-complementary
#784A9D #989D4A #4A9D4E
monochromatic
#38234A #583673 #784A9D #966BB9 #B495CD

Accessibility & contrast

On white

6.43
#784A9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#784A9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784A9D
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784A9D#FFFFFF#000000##FFFFFF
##784A9D1.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325DA0
Deuteranopia (green-blind)
#405F9B
Tritanopia (blue-blind)
#73596C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #784a9d;
/* rgb */ color: rgb(120, 74, 157);
/* oklch */ color: oklch(49.9% 0.134 307.8);
Tailwind
colors: {
  custom: {
    50: '#a17eba',
    500: '#784a9d',
    950: '#000000',
  },
}
SCSS
$custom: #784a9d;
$custom-light: #a17eba;
$custom-dark: #000000;
JSON
{
  "hex": "#784a9d",
  "rgb": {
    "r": 120,
    "g": 74,
    "b": 157
  },
  "hsl": {
    "h": 273.253,
    "s": 35.931,
    "l": 45.294
  },
  "oklch": {
    "l": 0.49874,
    "c": 0.13448,
    "h": 307.8
  },
  "luminance": 0.11325
}

Semantic roles & 50–950 ramp

primary
#784A9D
secondary
#9FB98A
accent
#CC5C8E
background
#FAF7FB
surface
#F4EEF6
border
#CEC9D0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #784A9D

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

Preview Lab → · Contrast checker → · Palette generator →

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