#784AA2#784AA2

#784AA2 is a mid, vivid violet. Relative luminance 0.115; OKLCH L 50.2% C 0.141 H 306.1°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#784AA2
RGBrgb(120, 74, 162)
HSLhsl(271, 37%, 46%)
HSVhsv(271, 54%, 64%)
CMYKcmyk(25.9%, 54.3%, 0%, 36.5%)
CIE-LABlab(40.41, 36.99, -40.41)
CIE-LCHlch(40.41, 54.78, 312.46°)
OKLaboklab(50.18% 0.0829 -0.1136)
OKLCHoklch(50.18% 0.141 306.1)
XYZxyz(16.7147, 11.4994, 35.5145)
Luminance0.1150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784AA2 #74A24A
analogous
#4C4AA2 #784AA2 #A24AA0
triadic
#784AA2 #A2784A #4AA278
tetradic
#784AA2 #A24C4A #74A24A #4AA0A2
square
#784AA2 #A24C4A #74A24A #4AA0A2
split-complementary
#784AA2 #A0A24A #4AA24C
monochromatic
#3A244E #593778 #784AA2 #966DBC #B497CF

Accessibility & contrast

On white

6.36
#784AA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#784AA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784AA2
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784AA2#FFFFFF#000000##FFFFFF
##784AA21.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5EA5
Deuteranopia (green-blind)
#3C60A0
Tritanopia (blue-blind)
#715A6F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #784aa2;
/* rgb */ color: rgb(120, 74, 162);
/* oklch */ color: oklch(50.2% 0.141 306.1);
Tailwind
colors: {
  custom: {
    50: '#a17ebe',
    500: '#784aa2',
    950: '#000000',
  },
}
SCSS
$custom: #784aa2;
$custom-light: #a17ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#784aa2",
  "rgb": {
    "r": 120,
    "g": 74,
    "b": 162
  },
  "hsl": {
    "h": 271.364,
    "s": 37.288,
    "l": 46.275
  },
  "oklch": {
    "l": 0.50178,
    "c": 0.14063,
    "h": 306.1
  },
  "luminance": 0.11499
}

Semantic roles & 50–950 ramp

primary
#784AA2
secondary
#A3BC8C
accent
#CD5B91
background
#FAF7FB
surface
#F4EEF7
border
#CEC9D0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #784AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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