#784CA4#784CA4

#784CA4 is a mid, vivid violet. Relative luminance 0.118; OKLCH L 50.6% C 0.140 H 305.0°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#784CA4
RGBrgb(120, 76, 164)
HSLhsl(270, 37%, 47%)
HSVhsv(270, 54%, 64%)
CMYKcmyk(26.8%, 53.7%, 0%, 35.7%)
CIE-LABlab(40.96, 36.34, -40.72)
CIE-LCHlch(40.96, 54.58, 311.74°)
OKLaboklab(50.63% 0.0803 -0.1145)
OKLCHoklch(50.63% 0.14 305)
XYZxyz(17.0296, 11.8424, 36.5034)
Luminance0.1184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784CA4 #78A44C
analogous
#4C4CA4 #784CA4 #A44CA4
triadic
#784CA4 #A4784C #4CA478
tetradic
#784CA4 #A44C4C #78A44C #4CA4A4
square
#784CA4 #A44C4C #78A44C #4CA4A4
split-complementary
#784CA4 #A4A44C #4CA44C
monochromatic
#3B2550 #59397A #784CA4 #9770BD #B59AD0

Accessibility & contrast

On white

6.23
#784CA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#784CA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784CA4
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784CA4#FFFFFF#000000##FFFFFF
##784CA41.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5FA7
Deuteranopia (green-blind)
#3D61A2
Tritanopia (blue-blind)
#715C71
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #784ca4;
/* rgb */ color: rgb(120, 76, 164);
/* oklch */ color: oklch(50.6% 0.140 305.0);
Tailwind
colors: {
  custom: {
    50: '#a17fbf',
    500: '#784ca4',
    950: '#000000',
  },
}
SCSS
$custom: #784ca4;
$custom-light: #a17fbf;
$custom-dark: #000000;
JSON
{
  "hex": "#784ca4",
  "rgb": {
    "r": 120,
    "g": 76,
    "b": 164
  },
  "hsl": {
    "h": 270,
    "s": 36.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.50626,
    "c": 0.13984,
    "h": 305
  },
  "luminance": 0.11842
}

Semantic roles & 50–950 ramp

primary
#784CA4
secondary
#A6BD8F
accent
#CD5B94
background
#FAF7FB
surface
#F4EEF7
border
#CEC9D0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #784CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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