#784EB7#784EB7

#784EB7 is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.2% C 0.160 H 299.2°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#784EB7
RGBrgb(120, 78, 183)
HSLhsl(264, 42%, 51%)
HSVhsv(264, 57%, 72%)
CMYKcmyk(34.4%, 57.4%, 0%, 28.2%)
CIE-LABlab(42.55, 40.05, -49.41)
CIE-LCHlch(42.55, 63.61, 309.03°)
OKLaboklab(52.17% 0.0783 -0.14)
OKLCHoklch(52.17% 0.16 299.2)
XYZxyz(19.0153, 12.8606, 46.2711)
Luminance0.1286 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784EB7 #8DB74E
analogous
#4E58B7 #784EB7 #AC4EB7
triadic
#784EB7 #B7784E #4EB778
tetradic
#784EB7 #B74E58 #8DB74E #4EB7AC
square
#784EB7 #B74E58 #8DB74E #4EB7AC
split-complementary
#784EB7 #B7AC4E #58B74E
monochromatic
#3F2863 #5B3A8E #784EB7 #997AC9 #BAA5DA

Accessibility & contrast

On white

5.88
#784EB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#784EB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784EB7
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784EB7#FFFFFF#000000##FFFFFF
##784EB71.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C64BA
Deuteranopia (green-blind)
#2D64B5
Tritanopia (blue-blind)
#6A637B
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #784eb7;
/* rgb */ color: rgb(120, 78, 183);
/* oklch */ color: oklch(52.2% 0.160 299.2);
Tailwind
colors: {
  custom: {
    50: '#a381cd',
    500: '#784eb7',
    950: '#000000',
  },
}
SCSS
$custom: #784eb7;
$custom-light: #a381cd;
$custom-dark: #000000;
JSON
{
  "hex": "#784eb7",
  "rgb": {
    "r": 120,
    "g": 78,
    "b": 183
  },
  "hsl": {
    "h": 264,
    "s": 42.169,
    "l": 51.176
  },
  "oklch": {
    "l": 0.52167,
    "c": 0.16041,
    "h": 299.2
  },
  "luminance": 0.12861
}

Semantic roles & 50–950 ramp

primary
#784EB7
secondary
#B5C899
accent
#D256A0
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #784EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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