#784D9E#784D9E

#784D9E is a mid, vivid violet. Relative luminance 0.118; OKLCH L 50.4% C 0.131 H 306.8°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#784D9E
RGBrgb(120, 77, 158)
HSLhsl(272, 34%, 46%)
HSVhsv(272, 51%, 62%)
CMYKcmyk(24.1%, 51.3%, 0%, 38%)
CIE-LABlab(40.85, 34.28, -37.33)
CIE-LCHlch(40.85, 50.68, 312.57°)
OKLaboklab(50.43% 0.0783 -0.1046)
OKLCHoklch(50.43% 0.131 306.8)
XYZxyz(16.5699, 11.7696, 33.7400)
Luminance0.1177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784D9E #739E4D
analogous
#4F4D9E #784D9E #9E4D9B
triadic
#784D9E #9E784D #4D9E78
tetradic
#784D9E #9E4F4D #739E4D #4D9B9E
square
#784D9E #9E4F4D #739E4D #4D9B9E
split-complementary
#784D9E #9B9E4D #4D9E4F
monochromatic
#39254C #593975 #784D9E #966FB9 #B498CD

Accessibility & contrast

On white

6.26
#784D9E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#784D9E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784D9E
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784D9E#FFFFFF#000000##FFFFFF
##784D9E1.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365FA1
Deuteranopia (green-blind)
#42619C
Tritanopia (blue-blind)
#725B6E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #784d9e;
/* rgb */ color: rgb(120, 77, 158);
/* oklch */ color: oklch(50.4% 0.131 306.8);
Tailwind
colors: {
  custom: {
    50: '#a180bb',
    500: '#784d9e',
    950: '#000000',
  },
}
SCSS
$custom: #784d9e;
$custom-light: #a180bb;
$custom-dark: #000000;
JSON
{
  "hex": "#784d9e",
  "rgb": {
    "r": 120,
    "g": 77,
    "b": 158
  },
  "hsl": {
    "h": 271.852,
    "s": 34.468,
    "l": 46.078
  },
  "oklch": {
    "l": 0.50429,
    "c": 0.13069,
    "h": 306.8
  },
  "luminance": 0.11769
}

Semantic roles & 50–950 ramp

primary
#784D9E
secondary
#A2BA8D
accent
#CB5D91
background
#FAF7FB
surface
#F4EEF6
border
#CEC9D0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #784D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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