#784DF2#784DF2

#784DF2 is a mid, highly saturated violet. Relative luminance 0.157; OKLCH L 56.4% C 0.232 H 288.6°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#784DF2
RGBrgb(120, 77, 242)
HSLhsl(256, 86%, 63%)
HSVhsv(256, 68%, 95%)
CMYKcmyk(50.4%, 68.2%, 0%, 5.1%)
CIE-LABlab(46.59, 56.53, -76.69)
CIE-LCHlch(46.59, 95.27, 306.39°)
OKLaboklab(56.43% 0.0742 -0.2202)
OKLCHoklch(56.43% 0.232 288.6)
XYZxyz(26.4220, 15.7104, 85.6274)
Luminance0.1571 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784DF2 #C7F24D
analogous
#4D75F2 #784DF2 #CA4DF2
triadic
#784DF2 #F2784D #4DF278
tetradic
#784DF2 #F24D75 #C7F24D #4DF2CA
square
#784DF2 #F24D75 #C7F24D #4DF2CA
split-complementary
#784DF2 #F2CA4D #75F24D
monochromatic
#3A0DB7 #4D14EE #784DF2 #A386F6 #CFBFFA

Accessibility & contrast

On white

5.07
#784DF2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#784DF2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784DF2
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784DF2#FFFFFF#000000##FFFFFF
##784DF21.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072F7
Deuteranopia (green-blind)
#006AEF
Tritanopia (blue-blind)
#4C779A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #784df2;
/* rgb */ color: rgb(120, 77, 242);
/* oklch */ color: oklch(56.4% 0.232 288.6);
Tailwind
colors: {
  custom: {
    50: '#a982f7',
    500: '#784df2',
    950: '#000000',
  },
}
SCSS
$custom: #784df2;
$custom-light: #a982f7;
$custom-dark: #000000;
JSON
{
  "hex": "#784df2",
  "rgb": {
    "r": 120,
    "g": 77,
    "b": 242
  },
  "hsl": {
    "h": 255.636,
    "s": 86.387,
    "l": 62.549
  },
  "oklch": {
    "l": 0.56427,
    "c": 0.23232,
    "h": 288.6
  },
  "luminance": 0.15712
}

Semantic roles & 50–950 ramp

primary
#784DF2
secondary
#DCEBAF
accent
#E303A8
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #784DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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