#784FA2#784FA2

#784FA2 is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.0% C 0.132 H 305.0°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#784FA2
RGBrgb(120, 79, 162)
HSLhsl(270, 34%, 47%)
HSVhsv(270, 51%, 64%)
CMYKcmyk(25.9%, 51.2%, 0%, 36.5%)
CIE-LABlab(41.52, 34.11, -38.64)
CIE-LCHlch(41.52, 51.55, 311.44°)
OKLaboklab(51% 0.0759 -0.1085)
OKLCHoklch(51% 0.132 305)
XYZxyz(17.0619, 12.1938, 35.6302)
Luminance0.1219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784FA2 #79A24F
analogous
#4F4FA2 #784FA2 #A24FA2
triadic
#784FA2 #A2784F #4FA278
tetradic
#784FA2 #A24F4F #79A24F #4FA2A2
square
#784FA2 #A24F4F #79A24F #4FA2A2
split-complementary
#784FA2 #A2A24F #4FA24F
monochromatic
#3B2750 #5A3B79 #784FA2 #9773BB #B59CCF

Accessibility & contrast

On white

6.11
#784FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#784FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784FA2
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784FA2#FFFFFF#000000##FFFFFF
##784FA21.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3661A5
Deuteranopia (green-blind)
#4262A0
Tritanopia (blue-blind)
#715E71
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #784fa2;
/* rgb */ color: rgb(120, 79, 162);
/* oklch */ color: oklch(51.0% 0.132 305.0);
Tailwind
colors: {
  custom: {
    50: '#a181be',
    500: '#784fa2',
    950: '#000000',
  },
}
SCSS
$custom: #784fa2;
$custom-light: #a181be;
$custom-dark: #000000;
JSON
{
  "hex": "#784fa2",
  "rgb": {
    "r": 120,
    "g": 79,
    "b": 162
  },
  "hsl": {
    "h": 269.639,
    "s": 34.44,
    "l": 47.255
  },
  "oklch": {
    "l": 0.51003,
    "c": 0.13237,
    "h": 305
  },
  "luminance": 0.12194
}

Semantic roles & 50–950 ramp

primary
#784FA2
secondary
#A7BC91
accent
#CB5D95
background
#FAF8FB
surface
#F4EFF7
border
#CECAD0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #784FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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