#784ED9#784ED9

#784ED9 is a mid, highly saturated violet. Relative luminance 0.145; OKLCH L 54.6% C 0.202 H 292.3°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#784ED9
RGBrgb(120, 78, 217)
HSLhsl(258, 65%, 58%)
HSVhsv(258, 64%, 85%)
CMYKcmyk(44.7%, 64.1%, 0%, 14.9%)
CIE-LABlab(44.87, 49.15, -65.34)
CIE-LCHlch(44.87, 81.76, 306.96°)
OKLaboklab(54.59% 0.0766 -0.1868)
OKLCHoklch(54.59% 0.202 292.3)
XYZxyz(22.9910, 14.4509, 67.2101)
Luminance0.1445 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784ED9 #AFD94E
analogous
#4E6AD9 #784ED9 #BD4ED9
triadic
#784ED9 #D9784E #4ED978
tetradic
#784ED9 #D94E6A #AFD94E #4ED9BD
square
#784ED9 #D94E6A #AFD94E #4ED9BD
split-complementary
#784ED9 #D9BD4E #6AD94E
monochromatic
#401F8E #5729C0 #784ED9 #9E80E4 #C5B3EF

Accessibility & contrast

On white

5.40
#784ED9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#784ED9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784ED9
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784ED9#FFFFFF#000000##FFFFFF
##784ED91.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDD
Deuteranopia (green-blind)
#0067D6
Tritanopia (blue-blind)
#5C6F8D
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #784ed9;
/* rgb */ color: rgb(120, 78, 217);
/* oklch */ color: oklch(54.6% 0.202 292.3);
Tailwind
colors: {
  custom: {
    50: '#a682e6',
    500: '#784ed9',
    950: '#000000',
  },
}
SCSS
$custom: #784ed9;
$custom-light: #a682e6;
$custom-dark: #000000;
JSON
{
  "hex": "#784ed9",
  "rgb": {
    "r": 120,
    "g": 78,
    "b": 217
  },
  "hsl": {
    "h": 258.129,
    "s": 64.651,
    "l": 57.843
  },
  "oklch": {
    "l": 0.54594,
    "c": 0.2019,
    "h": 292.3
  },
  "luminance": 0.14452
}

Semantic roles & 50–950 ramp

primary
#784ED9
secondary
#CCDDA6
accent
#E840B5
background
#FAF8FE
surface
#F4EFFC
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #784ED9

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

Preview Lab → · Contrast checker → · Palette generator →

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