#784CBA#784CBA

#784CBA is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.1% C 0.167 H 298.9°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#784CBA
RGBrgb(120, 76, 186)
HSLhsl(264, 44%, 51%)
HSVhsv(264, 59%, 73%)
CMYKcmyk(35.5%, 59.1%, 0%, 27.1%)
CIE-LABlab(42.32, 41.96, -51.55)
CIE-LCHlch(42.32, 66.46, 309.14°)
OKLaboklab(52.06% 0.0808 -0.1462)
OKLCHoklch(52.06% 0.167 298.9)
XYZxyz(19.1909, 12.7069, 47.8865)
Luminance0.1271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784CBA #8EBA4C
analogous
#4C57BA #784CBA #AF4CBA
triadic
#784CBA #BA784C #4CBA78
tetradic
#784CBA #BA4C57 #8EBA4C #4CBAAF
square
#784CBA #BA4C57 #8EBA4C #4CBAAF
split-complementary
#784CBA #BAAF4C #57BA4C
monochromatic
#402765 #5B3891 #784CBA #9978CB #BBA4DC

Accessibility & contrast

On white

5.93
#784CBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#784CBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784CBA
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784CBA#FFFFFF#000000##FFFFFF
##784CBA1.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D64BE
Deuteranopia (green-blind)
#2663B8
Tritanopia (blue-blind)
#69637C
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #784cba;
/* rgb */ color: rgb(120, 76, 186);
/* oklch */ color: oklch(52.1% 0.167 298.9);
Tailwind
colors: {
  custom: {
    50: '#a380cf',
    500: '#784cba',
    950: '#000000',
  },
}
SCSS
$custom: #784cba;
$custom-light: #a380cf;
$custom-dark: #000000;
JSON
{
  "hex": "#784cba",
  "rgb": {
    "r": 120,
    "g": 76,
    "b": 186
  },
  "hsl": {
    "h": 264,
    "s": 44.355,
    "l": 51.373
  },
  "oklch": {
    "l": 0.52057,
    "c": 0.16709,
    "h": 298.9
  },
  "luminance": 0.12707
}

Semantic roles & 50–950 ramp

primary
#784CBA
secondary
#B6C999
accent
#D454A1
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#0F0A14
muted
#7F7C82

Preview Lab

Preview with #784CBA

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

Preview Lab → · Contrast checker → · Palette generator →

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