#784EB3#784EB3

#784EB3 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 51.9% C 0.155 H 300.2°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#784EB3
RGBrgb(120, 78, 179)
HSLhsl(265, 40%, 50%)
HSVhsv(265, 56%, 70%)
CMYKcmyk(33%, 56.4%, 0%, 29.8%)
CIE-LABlab(42.30, 39.01, -47.47)
CIE-LCHlch(42.30, 61.44, 309.42°)
OKLaboklab(51.9% 0.0783 -0.1343)
OKLCHoklch(51.9% 0.155 300.2)
XYZxyz(18.6049, 12.6964, 44.1096)
Luminance0.1270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784EB3 #89B34E
analogous
#4E57B3 #784EB3 #AA4EB3
triadic
#784EB3 #B3784E #4EB378
tetradic
#784EB3 #B34E57 #89B34E #4EB3AA
square
#784EB3 #B34E57 #89B34E #4EB3AA
split-complementary
#784EB3 #B3AA4E #57B34E
monochromatic
#3F285E #5B3B89 #784EB3 #9979C5 #B9A4D8

Accessibility & contrast

On white

5.93
#784EB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#784EB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784EB3
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784EB3#FFFFFF#000000##FFFFFF
##784EB31.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2364B6
Deuteranopia (green-blind)
#3263B1
Tritanopia (blue-blind)
#6C6279
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #784eb3;
/* rgb */ color: rgb(120, 78, 179);
/* oklch */ color: oklch(51.9% 0.155 300.2);
Tailwind
colors: {
  custom: {
    50: '#a281ca',
    500: '#784eb3',
    950: '#000000',
  },
}
SCSS
$custom: #784eb3;
$custom-light: #a281ca;
$custom-dark: #000000;
JSON
{
  "hex": "#784eb3",
  "rgb": {
    "r": 120,
    "g": 78,
    "b": 179
  },
  "hsl": {
    "h": 264.95,
    "s": 39.921,
    "l": 50.392
  },
  "oklch": {
    "l": 0.51903,
    "c": 0.15541,
    "h": 300.2
  },
  "luminance": 0.12697
}

Semantic roles & 50–950 ramp

primary
#784EB3
secondary
#B2C598
accent
#D0589E
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #784EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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