#784CB5#784CB5

#784CB5 is a mid, vivid violet. Relative luminance 0.125; OKLCH L 51.7% C 0.161 H 300.2°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#784CB5
RGBrgb(120, 76, 181)
HSLhsl(265, 42%, 50%)
HSVhsv(265, 58%, 71%)
CMYKcmyk(33.7%, 58%, 0%, 29%)
CIE-LABlab(42.00, 40.66, -49.13)
CIE-LCHlch(42.00, 63.77, 309.61°)
OKLaboklab(51.72% 0.0808 -0.1392)
OKLCHoklch(51.72% 0.161 300.2)
XYZxyz(18.6687, 12.4980, 45.1359)
Luminance0.1250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784CB5 #89B54C
analogous
#4C54B5 #784CB5 #AD4CB5
triadic
#784CB5 #B5784C #4CB578
tetradic
#784CB5 #B54C54 #89B54C #4CB5AD
square
#784CB5 #B54C54 #89B54C #4CB5AD
split-complementary
#784CB5 #B5AD4C #54B54C
monochromatic
#3F275F #5B398B #784CB5 #9977C7 #B9A3D9

Accessibility & contrast

On white

6.00
#784CB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#784CB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784CB5
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784CB5#FFFFFF#000000##FFFFFF
##784CB51.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1963B8
Deuteranopia (green-blind)
#2D62B3
Tritanopia (blue-blind)
#6B6179
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #784cb5;
/* rgb */ color: rgb(120, 76, 181);
/* oklch */ color: oklch(51.7% 0.161 300.2);
Tailwind
colors: {
  custom: {
    50: '#a380cc',
    500: '#784cb5',
    950: '#000000',
  },
}
SCSS
$custom: #784cb5;
$custom-light: #a380cc;
$custom-dark: #000000;
JSON
{
  "hex": "#784cb5",
  "rgb": {
    "r": 120,
    "g": 76,
    "b": 181
  },
  "hsl": {
    "h": 265.143,
    "s": 41.502,
    "l": 50.392
  },
  "oklch": {
    "l": 0.51719,
    "c": 0.16094,
    "h": 300.2
  },
  "luminance": 0.12498
}

Semantic roles & 50–950 ramp

primary
#784CB5
secondary
#B2C697
accent
#D1569E
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #784CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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