#784DB4#784DB4

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

Color values

HEX#784DB4
RGBrgb(120, 77, 180)
HSLhsl(265, 41%, 50%)
HSVhsv(265, 57%, 71%)
CMYKcmyk(33.3%, 57.2%, 0%, 29.4%)
CIE-LABlab(42.15, 39.84, -48.30)
CIE-LCHlch(42.15, 62.61, 309.51°)
OKLaboklab(51.81% 0.0796 -0.1367)
OKLCHoklch(51.81% 0.158 300.2)
XYZxyz(18.6359, 12.5960, 44.6206)
Luminance0.1260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784DB4 #89B44D
analogous
#4D55B4 #784DB4 #AC4DB4
triadic
#784DB4 #B4784D #4DB478
tetradic
#784DB4 #B44D55 #89B44D #4DB4AC
square
#784DB4 #B44D55 #89B44D #4DB4AC
split-complementary
#784DB4 #B4AC4D #55B44D
monochromatic
#3F285F #5B3A8A #784DB4 #9978C6 #B9A3D8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##784DB4#FFFFFF#000000##FFFFFF
##784DB41.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)
#1E63B7
Deuteranopia (green-blind)
#2F63B2
Tritanopia (blue-blind)
#6C6279
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #784db4;
/* rgb */ color: rgb(120, 77, 180);
/* oklch */ color: oklch(51.8% 0.158 300.2);
Tailwind
colors: {
  custom: {
    50: '#a280cb',
    500: '#784db4',
    950: '#000000',
  },
}
SCSS
$custom: #784db4;
$custom-light: #a280cb;
$custom-dark: #000000;
JSON
{
  "hex": "#784db4",
  "rgb": {
    "r": 120,
    "g": 77,
    "b": 180
  },
  "hsl": {
    "h": 265.049,
    "s": 40.711,
    "l": 50.392
  },
  "oklch": {
    "l": 0.51809,
    "c": 0.15818,
    "h": 300.2
  },
  "luminance": 0.12596
}

Semantic roles & 50–950 ramp

primary
#784DB4
secondary
#B2C597
accent
#D1579E
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #784DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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