#784CA8#784CA8

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

Color values

HEX#784CA8
RGBrgb(120, 76, 168)
HSLhsl(269, 38%, 48%)
HSVhsv(269, 55%, 66%)
CMYKcmyk(28.6%, 54.8%, 0%, 34.1%)
CIE-LABlab(41.20, 37.34, -42.73)
CIE-LCHlch(41.20, 56.74, 311.15°)
OKLaboklab(50.88% 0.0805 -0.1204)
OKLCHoklch(50.88% 0.145 303.8)
XYZxyz(17.3965, 11.9892, 38.4358)
Luminance0.1199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784CA8 #7CA84C
analogous
#4C4EA8 #784CA8 #A64CA8
triadic
#784CA8 #A8784C #4CA878
tetradic
#784CA8 #A84C4E #7CA84C #4CA8A6
square
#784CA8 #A84C4E #7CA84C #4CA8A6
split-complementary
#784CA8 #A8A64C #4EA84C
monochromatic
#3C2654 #5A397E #784CA8 #9772BF #B69CD2

Accessibility & contrast

On white

6.18
#784CA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#784CA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784CA8
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784CA8#FFFFFF#000000##FFFFFF
##784CA81.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B60AB
Deuteranopia (green-blind)
#3A61A6
Tritanopia (blue-blind)
#6F5D73
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #784ca8;
/* rgb */ color: rgb(120, 76, 168);
/* oklch */ color: oklch(50.9% 0.145 303.8);
Tailwind
colors: {
  custom: {
    50: '#a27fc2',
    500: '#784ca8',
    950: '#000000',
  },
}
SCSS
$custom: #784ca8;
$custom-light: #a27fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#784ca8",
  "rgb": {
    "r": 120,
    "g": 76,
    "b": 168
  },
  "hsl": {
    "h": 268.696,
    "s": 37.705,
    "l": 47.843
  },
  "oklch": {
    "l": 0.50875,
    "c": 0.14482,
    "h": 303.8
  },
  "luminance": 0.11989
}

Semantic roles & 50–950 ramp

primary
#784CA8
secondary
#A9BF91
accent
#CE5A96
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #784CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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