#784EB2#784EB2

#784EB2 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 51.8% C 0.154 H 300.5°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#784EB2
RGBrgb(120, 78, 178)
HSLhsl(265, 39%, 50%)
HSVhsv(265, 56%, 70%)
CMYKcmyk(32.6%, 56.2%, 0%, 30.2%)
CIE-LABlab(42.24, 38.75, -46.98)
CIE-LCHlch(42.24, 60.90, 309.52°)
OKLaboklab(51.84% 0.0782 -0.1328)
OKLCHoklch(51.84% 0.154 300.5)
XYZxyz(18.5041, 12.6561, 43.5789)
Luminance0.1266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784EB2 #88B24E
analogous
#4E56B2 #784EB2 #AA4EB2
triadic
#784EB2 #B2784E #4EB278
tetradic
#784EB2 #B24E56 #88B24E #4EB2AA
square
#784EB2 #B24E56 #88B24E #4EB2AA
split-complementary
#784EB2 #B2AA4E #56B24E
monochromatic
#3F295D #5B3B88 #784EB2 #9979C5 #B9A3D7

Accessibility & contrast

On white

5.95
#784EB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#784EB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784EB2
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784EB2#FFFFFF#000000##FFFFFF
##784EB21.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2463B5
Deuteranopia (green-blind)
#3363B0
Tritanopia (blue-blind)
#6C6278
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #784eb2;
/* rgb */ color: rgb(120, 78, 178);
/* oklch */ color: oklch(51.8% 0.154 300.5);
Tailwind
colors: {
  custom: {
    50: '#a281c9',
    500: '#784eb2',
    950: '#000000',
  },
}
SCSS
$custom: #784eb2;
$custom-light: #a281c9;
$custom-dark: #000000;
JSON
{
  "hex": "#784eb2",
  "rgb": {
    "r": 120,
    "g": 78,
    "b": 178
  },
  "hsl": {
    "h": 265.2,
    "s": 39.37,
    "l": 50.196
  },
  "oklch": {
    "l": 0.51837,
    "c": 0.15417,
    "h": 300.5
  },
  "luminance": 0.12656
}

Semantic roles & 50–950 ramp

primary
#784EB2
secondary
#B1C498
accent
#CF599D
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #784EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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