#784E9F#784E9F

#784E9F is a mid, vivid violet. Relative luminance 0.119; OKLCH L 50.7% C 0.130 H 306.2°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#784E9F
RGBrgb(120, 78, 159)
HSLhsl(271, 34%, 46%)
HSVhsv(271, 51%, 62%)
CMYKcmyk(24.5%, 50.9%, 0%, 37.6%)
CIE-LABlab(41.13, 33.95, -37.48)
CIE-LCHlch(41.13, 50.57, 312.17°)
OKLaboklab(50.66% 0.077 -0.105)
OKLCHoklch(50.66% 0.13 306.2)
XYZxyz(16.7268, 11.9452, 34.2186)
Luminance0.1195 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784E9F #759F4E
analogous
#504E9F #784E9F #9F4E9E
triadic
#784E9F #9F784E #4E9F78
tetradic
#784E9F #9F504E #759F4E #4E9E9F
square
#784E9F #9F504E #759F4E #4E9E9F
split-complementary
#784E9F #9E9F4E #4E9F50
monochromatic
#3A264D #593A76 #784E9F #9671B9 #B59ACD

Accessibility & contrast

On white

6.20
#784E9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#784E9F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784E9F
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784E9F#FFFFFF#000000##FFFFFF
##784E9F1.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3760A2
Deuteranopia (green-blind)
#43619D
Tritanopia (blue-blind)
#725C6F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #784e9f;
/* rgb */ color: rgb(120, 78, 159);
/* oklch */ color: oklch(50.7% 0.130 306.2);
Tailwind
colors: {
  custom: {
    50: '#a181bc',
    500: '#784e9f',
    950: '#000000',
  },
}
SCSS
$custom: #784e9f;
$custom-light: #a181bc;
$custom-dark: #000000;
JSON
{
  "hex": "#784e9f",
  "rgb": {
    "r": 120,
    "g": 78,
    "b": 159
  },
  "hsl": {
    "h": 271.111,
    "s": 34.177,
    "l": 46.471
  },
  "oklch": {
    "l": 0.50656,
    "c": 0.13025,
    "h": 306.2
  },
  "luminance": 0.11945
}

Semantic roles & 50–950 ramp

primary
#784E9F
secondary
#A4BA8F
accent
#CA5E92
background
#FAF7FB
surface
#F4EEF6
border
#CEC9D0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #784E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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