#784CA9#784CA9

#784CA9 is a mid, vivid violet. Relative luminance 0.120; OKLCH L 50.9% C 0.146 H 303.5°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#784CA9
RGBrgb(120, 76, 169)
HSLhsl(268, 38%, 48%)
HSVhsv(268, 55%, 66%)
CMYKcmyk(29%, 55%, 0%, 33.7%)
CIE-LABlab(41.26, 37.59, -43.23)
CIE-LCHlch(41.26, 57.29, 311.01°)
OKLaboklab(50.94% 0.0806 -0.1218)
OKLCHoklch(50.94% 0.146 303.5)
XYZxyz(17.4900, 12.0266, 38.9284)
Luminance0.1203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784CA9 #7DA94C
analogous
#4C4FA9 #784CA9 #A64CA9
triadic
#784CA9 #A9784C #4CA978
tetradic
#784CA9 #A94C4F #7DA94C #4CA9A6
square
#784CA9 #A94C4F #7DA94C #4CA9A6
split-complementary
#784CA9 #A9A64C #4FA94C
monochromatic
#3C2655 #5A397F #784CA9 #9772C0 #B69DD3

Accessibility & contrast

On white

6.17
#784CA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#784CA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784CA9
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784CA9#FFFFFF#000000##FFFFFF
##784CA91.006.173.416.17
#FFFFFF6.171.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A60AC
Deuteranopia (green-blind)
#3961A7
Tritanopia (blue-blind)
#6F5E73
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #784ca9;
/* rgb */ color: rgb(120, 76, 169);
/* oklch */ color: oklch(50.9% 0.146 303.5);
Tailwind
colors: {
  custom: {
    50: '#a27fc3',
    500: '#784ca9',
    950: '#000000',
  },
}
SCSS
$custom: #784ca9;
$custom-light: #a27fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#784ca9",
  "rgb": {
    "r": 120,
    "g": 76,
    "b": 169
  },
  "hsl": {
    "h": 268.387,
    "s": 37.959,
    "l": 48.039
  },
  "oklch": {
    "l": 0.50938,
    "c": 0.14607,
    "h": 303.5
  },
  "luminance": 0.12027
}

Semantic roles & 50–950 ramp

primary
#784CA9
secondary
#AABF91
accent
#CE5A97
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #784CA9

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

Preview Lab → · Contrast checker → · Palette generator →

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