#784FA6#784FA6

#784FA6 is a mid, vivid violet. Relative luminance 0.123; OKLCH L 51.2% C 0.137 H 303.7°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#784FA6
RGBrgb(120, 79, 166)
HSLhsl(268, 36%, 48%)
HSVhsv(268, 52%, 65%)
CMYKcmyk(27.7%, 52.4%, 0%, 34.9%)
CIE-LABlab(41.75, 35.11, -40.66)
CIE-LCHlch(41.75, 53.73, 310.81°)
OKLaboklab(51.24% 0.0763 -0.1144)
OKLCHoklch(51.24% 0.137 303.7)
XYZxyz(17.4231, 12.3382, 37.5326)
Luminance0.1234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784FA6 #7DA64F
analogous
#4F51A6 #784FA6 #A34FA6
triadic
#784FA6 #A6784F #4FA678
tetradic
#784FA6 #A64F51 #7DA64F #4FA6A3
square
#784FA6 #A64F51 #7DA64F #4FA6A3
split-complementary
#784FA6 #A6A34F #51A64F
monochromatic
#3C2853 #5A3B7D #784FA6 #9775BD #B69ED1

Accessibility & contrast

On white

6.06
#784FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#784FA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784FA6
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784FA6#FFFFFF#000000##FFFFFF
##784FA61.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3361A9
Deuteranopia (green-blind)
#3F62A4
Tritanopia (blue-blind)
#705F73
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #784fa6;
/* rgb */ color: rgb(120, 79, 166);
/* oklch */ color: oklch(51.2% 0.137 303.7);
Tailwind
colors: {
  custom: {
    50: '#a181c1',
    500: '#784fa6',
    950: '#000000',
  },
}
SCSS
$custom: #784fa6;
$custom-light: #a181c1;
$custom-dark: #000000;
JSON
{
  "hex": "#784fa6",
  "rgb": {
    "r": 120,
    "g": 79,
    "b": 166
  },
  "hsl": {
    "h": 268.276,
    "s": 35.51,
    "l": 48.039
  },
  "oklch": {
    "l": 0.51244,
    "c": 0.13745,
    "h": 303.7
  },
  "luminance": 0.12338
}

Semantic roles & 50–950 ramp

primary
#784FA6
secondary
#AABE93
accent
#CC5C97
background
#FAF8FB
surface
#F4EFF7
border
#CECAD0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #784FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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