#784EB8#784EB8

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

Color values

HEX#784EB8
RGBrgb(120, 78, 184)
HSLhsl(264, 43%, 51%)
HSVhsv(264, 58%, 72%)
CMYKcmyk(34.8%, 57.6%, 0%, 27.8%)
CIE-LABlab(42.62, 40.31, -49.90)
CIE-LCHlch(42.62, 64.15, 308.94°)
OKLaboklab(52.23% 0.0783 -0.1414)
OKLCHoklch(52.23% 0.162 299)
XYZxyz(19.1197, 12.9023, 46.8212)
Luminance0.1290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784EB8 #8EB84E
analogous
#4E59B8 #784EB8 #AD4EB8
triadic
#784EB8 #B8784E #4EB878
tetradic
#784EB8 #B84E59 #8EB84E #4EB8AD
square
#784EB8 #B84E59 #8EB84E #4EB8AD
split-complementary
#784EB8 #B8AD4E #59B84E
monochromatic
#402864 #5B398F #784EB8 #997ACA #BBA5DB

Accessibility & contrast

On white

5.86
#784EB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#784EB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784EB8
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784EB8#FFFFFF#000000##FFFFFF
##784EB81.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A65BB
Deuteranopia (green-blind)
#2C64B6
Tritanopia (blue-blind)
#6A647B
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #784eb8;
/* rgb */ color: rgb(120, 78, 184);
/* oklch */ color: oklch(52.2% 0.162 299.0);
Tailwind
colors: {
  custom: {
    50: '#a381ce',
    500: '#784eb8',
    950: '#000000',
  },
}
SCSS
$custom: #784eb8;
$custom-light: #a381ce;
$custom-dark: #000000;
JSON
{
  "hex": "#784eb8",
  "rgb": {
    "r": 120,
    "g": 78,
    "b": 184
  },
  "hsl": {
    "h": 263.774,
    "s": 42.742,
    "l": 51.373
  },
  "oklch": {
    "l": 0.52234,
    "c": 0.16166,
    "h": 299
  },
  "luminance": 0.12903
}

Semantic roles & 50–950 ramp

primary
#784EB8
secondary
#B6C89A
accent
#D355A1
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#0F0A14
muted
#7F7C82

Preview Lab

Preview with #784EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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