#784EB0#784EB0

#784EB0 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 51.7% C 0.152 H 301.0°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#784EB0
RGBrgb(120, 78, 176)
HSLhsl(266, 39%, 50%)
HSVhsv(266, 56%, 69%)
CMYKcmyk(31.8%, 55.7%, 0%, 31%)
CIE-LABlab(42.12, 38.24, -45.99)
CIE-LCHlch(42.12, 59.81, 309.74°)
OKLaboklab(51.71% 0.0782 -0.13)
OKLCHoklch(51.71% 0.152 301)
XYZxyz(18.3048, 12.5764, 42.5290)
Luminance0.1258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784EB0 #86B04E
analogous
#4E55B0 #784EB0 #A94EB0
triadic
#784EB0 #B0784E #4EB078
tetradic
#784EB0 #B04E55 #86B04E #4EB0A9
square
#784EB0 #B04E55 #86B04E #4EB0A9
split-complementary
#784EB0 #B0A94E #55B04E
monochromatic
#3E285B #5B3B86 #784EB0 #9878C3 #B9A2D6

Accessibility & contrast

On white

5.97
#784EB0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#784EB0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784EB0
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784EB0#FFFFFF#000000##FFFFFF
##784EB01.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2763B3
Deuteranopia (green-blind)
#3563AE
Tritanopia (blue-blind)
#6D6177
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #784eb0;
/* rgb */ color: rgb(120, 78, 176);
/* oklch */ color: oklch(51.7% 0.152 301.0);
Tailwind
colors: {
  custom: {
    50: '#a281c8',
    500: '#784eb0',
    950: '#000000',
  },
}
SCSS
$custom: #784eb0;
$custom-light: #a281c8;
$custom-dark: #000000;
JSON
{
  "hex": "#784eb0",
  "rgb": {
    "r": 120,
    "g": 78,
    "b": 176
  },
  "hsl": {
    "h": 265.714,
    "s": 38.583,
    "l": 49.804
  },
  "oklch": {
    "l": 0.51708,
    "c": 0.15166,
    "h": 301
  },
  "luminance": 0.12576
}

Semantic roles & 50–950 ramp

primary
#784EB0
secondary
#B0C397
accent
#CF599C
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #784EB0

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

Preview Lab → · Contrast checker → · Palette generator →

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