#784ED8#784ED8

#784ED8 is a mid, highly saturated violet. Relative luminance 0.144; OKLCH L 54.5% C 0.201 H 292.5°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#784ED8
RGBrgb(120, 78, 216)
HSLhsl(258, 64%, 58%)
HSVhsv(258, 64%, 85%)
CMYKcmyk(44.4%, 63.9%, 0%, 15.3%)
CIE-LABlab(44.80, 48.88, -64.88)
CIE-LCHlch(44.80, 81.24, 306.99°)
OKLaboklab(54.52% 0.0767 -0.1855)
OKLCHoklch(54.52% 0.201 292.5)
XYZxyz(22.8614, 14.3990, 66.5272)
Luminance0.1440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784ED8 #AED84E
analogous
#4E69D8 #784ED8 #BD4ED8
triadic
#784ED8 #D8784E #4ED878
tetradic
#784ED8 #D84E69 #AED84E #4ED8BD
square
#784ED8 #D84E69 #AED84E #4ED8BD
split-complementary
#784ED8 #D8BD4E #69D84E
monochromatic
#401F8D #572ABF #784ED8 #9E80E3 #C4B2EE

Accessibility & contrast

On white

5.41
#784ED8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#784ED8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784ED8
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784ED8#FFFFFF#000000##FFFFFF
##784ED81.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDC
Deuteranopia (green-blind)
#0067D5
Tritanopia (blue-blind)
#5C6F8C
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #784ed8;
/* rgb */ color: rgb(120, 78, 216);
/* oklch */ color: oklch(54.5% 0.201 292.5);
Tailwind
colors: {
  custom: {
    50: '#a682e5',
    500: '#784ed8',
    950: '#000000',
  },
}
SCSS
$custom: #784ed8;
$custom-light: #a682e5;
$custom-dark: #000000;
JSON
{
  "hex": "#784ed8",
  "rgb": {
    "r": 120,
    "g": 78,
    "b": 216
  },
  "hsl": {
    "h": 258.261,
    "s": 63.889,
    "l": 57.647
  },
  "oklch": {
    "l": 0.54519,
    "c": 0.2007,
    "h": 292.5
  },
  "luminance": 0.144
}

Semantic roles & 50–950 ramp

primary
#784ED8
secondary
#CCDDA5
accent
#E741B4
background
#FAF8FE
surface
#F4EFFC
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #784ED8

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

Preview Lab → · Contrast checker → · Palette generator →

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