#784CB7#784CB7

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

Color values

HEX#784CB7
RGBrgb(120, 76, 183)
HSLhsl(265, 43%, 51%)
HSVhsv(265, 58%, 72%)
CMYKcmyk(34.4%, 58.5%, 0%, 28.2%)
CIE-LABlab(42.12, 41.18, -50.10)
CIE-LCHlch(42.12, 64.85, 309.42°)
OKLaboklab(51.85% 0.0808 -0.142)
OKLCHoklch(51.85% 0.163 299.7)
XYZxyz(18.8753, 12.5807, 46.2244)
Luminance0.1258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784CB7 #8BB74C
analogous
#4C55B7 #784CB7 #AD4CB7
triadic
#784CB7 #B7784C #4CB778
tetradic
#784CB7 #B74C55 #8BB74C #4CB7AD
square
#784CB7 #B74C55 #8BB74C #4CB7AD
split-complementary
#784CB7 #B7AD4C #55B74C
monochromatic
#3F2761 #5B398D #784CB7 #9978C9 #BAA3DA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##784CB7#FFFFFF#000000##FFFFFF
##784CB71.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)
#1563BA
Deuteranopia (green-blind)
#2A63B5
Tritanopia (blue-blind)
#6B627A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #784cb7;
/* rgb */ color: rgb(120, 76, 183);
/* oklch */ color: oklch(51.9% 0.163 299.7);
Tailwind
colors: {
  custom: {
    50: '#a380cd',
    500: '#784cb7',
    950: '#000000',
  },
}
SCSS
$custom: #784cb7;
$custom-light: #a380cd;
$custom-dark: #000000;
JSON
{
  "hex": "#784cb7",
  "rgb": {
    "r": 120,
    "g": 76,
    "b": 183
  },
  "hsl": {
    "h": 264.673,
    "s": 42.629,
    "l": 50.784
  },
  "oklch": {
    "l": 0.51853,
    "c": 0.1634,
    "h": 299.7
  },
  "luminance": 0.12581
}

Semantic roles & 50–950 ramp

primary
#784CB7
secondary
#B4C798
accent
#D2559F
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #784CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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