#784FA1#784FA1

#784FA1 is a mid, vivid violet. Relative luminance 0.122; OKLCH L 50.9% C 0.131 H 305.3°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#784FA1
RGBrgb(120, 79, 161)
HSLhsl(270, 34%, 47%)
HSVhsv(270, 51%, 63%)
CMYKcmyk(25.5%, 50.9%, 0%, 36.9%)
CIE-LABlab(41.47, 33.87, -38.14)
CIE-LCHlch(41.47, 51.00, 311.60°)
OKLaboklab(50.94% 0.0758 -0.107)
OKLCHoklch(50.94% 0.131 305.3)
XYZxyz(16.9734, 12.1583, 35.1639)
Luminance0.1216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784FA1 #78A14F
analogous
#4F4FA1 #784FA1 #A14FA1
triadic
#784FA1 #A1784F #4FA178
tetradic
#784FA1 #A14F4F #78A14F #4FA1A1
square
#784FA1 #A14F4F #78A14F #4FA1A1
split-complementary
#784FA1 #A1A14F #4FA14F
monochromatic
#3B274F #593B78 #784FA1 #9773BA #B59CCE

Accessibility & contrast

On white

6.12
#784FA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#784FA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784FA1
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784FA1#FFFFFF#000000##FFFFFF
##784FA11.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3761A4
Deuteranopia (green-blind)
#42629F
Tritanopia (blue-blind)
#715D70
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #784fa1;
/* rgb */ color: rgb(120, 79, 161);
/* oklch */ color: oklch(50.9% 0.131 305.3);
Tailwind
colors: {
  custom: {
    50: '#a181bd',
    500: '#784fa1',
    950: '#000000',
  },
}
SCSS
$custom: #784fa1;
$custom-light: #a181bd;
$custom-dark: #000000;
JSON
{
  "hex": "#784fa1",
  "rgb": {
    "r": 120,
    "g": 79,
    "b": 161
  },
  "hsl": {
    "h": 270,
    "s": 34.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.50943,
    "c": 0.13111,
    "h": 305.3
  },
  "luminance": 0.12158
}

Semantic roles & 50–950 ramp

primary
#784FA1
secondary
#A6BB91
accent
#CA5E94
background
#FAF8FB
surface
#F4EFF6
border
#CECAD0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #784FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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