#784DB5#784DB5

#784DB5 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 51.9% C 0.159 H 299.9°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#784DB5
RGBrgb(120, 77, 181)
HSLhsl(265, 41%, 51%)
HSVhsv(265, 57%, 71%)
CMYKcmyk(33.7%, 57.5%, 0%, 29%)
CIE-LABlab(42.21, 40.09, -48.79)
CIE-LCHlch(42.21, 63.15, 309.41°)
OKLaboklab(51.88% 0.0796 -0.1381)
OKLCHoklch(51.88% 0.159 299.9)
XYZxyz(18.7381, 12.6369, 45.1591)
Luminance0.1264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784DB5 #8AB54D
analogous
#4D56B5 #784DB5 #AC4DB5
triadic
#784DB5 #B5784D #4DB578
tetradic
#784DB5 #B54D56 #8AB54D #4DB5AC
square
#784DB5 #B54D56 #8AB54D #4DB5AC
split-complementary
#784DB5 #B5AC4D #56B54D
monochromatic
#3F2860 #5B3A8B #784DB5 #9978C7 #BAA3D9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##784DB5#FFFFFF#000000##FFFFFF
##784DB51.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)
#1D63B8
Deuteranopia (green-blind)
#2E63B3
Tritanopia (blue-blind)
#6B6279
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #784db5;
/* rgb */ color: rgb(120, 77, 181);
/* oklch */ color: oklch(51.9% 0.159 299.9);
Tailwind
colors: {
  custom: {
    50: '#a380cc',
    500: '#784db5',
    950: '#000000',
  },
}
SCSS
$custom: #784db5;
$custom-light: #a380cc;
$custom-dark: #000000;
JSON
{
  "hex": "#784db5",
  "rgb": {
    "r": 120,
    "g": 77,
    "b": 181
  },
  "hsl": {
    "h": 264.808,
    "s": 41.27,
    "l": 50.588
  },
  "oklch": {
    "l": 0.51876,
    "c": 0.15943,
    "h": 299.9
  },
  "luminance": 0.12637
}

Semantic roles & 50–950 ramp

primary
#784DB5
secondary
#B3C698
accent
#D1579E
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #784DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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