#782BAC#782BAC

#782BAC is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.8% C 0.195 H 307.6°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#782BAC
RGBrgb(120, 43, 172)
HSLhsl(276, 60%, 42%)
HSVhsv(276, 75%, 67%)
CMYKcmyk(30.2%, 75%, 0%, 32.5%)
CIE-LABlab(35.40, 54.84, -54.45)
CIE-LCHlch(35.40, 77.28, 315.21°)
OKLaboklab(46.77% 0.1189 -0.1546)
OKLCHoklch(46.77% 0.195 307.6)
XYZxyz(16.0544, 8.6996, 39.8552)
Luminance0.0870 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782BAC #5FAC2B
analogous
#382BAC #782BAC #AC2BA0
triadic
#782BAC #AC782B #2BAC78
tetradic
#782BAC #AC382B #5FAC2B #2BA0AC
square
#782BAC #AC382B #5FAC2B #2BA0AC
split-complementary
#782BAC #A0AC2B #2BAC38
monochromatic
#34134A #561F7B #782BAC #9844D0 #B375DC

Accessibility & contrast

On white

7.66
#782BAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#782BAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782BAC
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782BAC#FFFFFF#000000##FFFFFF
##782BAC1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B0
Deuteranopia (green-blind)
#0054A9
Tritanopia (blue-blind)
#6F4A6A
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #782bac;
/* rgb */ color: rgb(120, 43, 172);
/* oklch */ color: oklch(46.8% 0.195 307.6);
Tailwind
colors: {
  custom: {
    50: '#a46cc6',
    500: '#782bac',
    950: '#000000',
  },
}
SCSS
$custom: #782bac;
$custom-light: #a46cc6;
$custom-dark: #000000;
JSON
{
  "hex": "#782bac",
  "rgb": {
    "r": 120,
    "g": 43,
    "b": 172
  },
  "hsl": {
    "h": 275.814,
    "s": 60,
    "l": 42.157
  },
  "oklch": {
    "l": 0.46769,
    "c": 0.19509,
    "h": 307.6
  },
  "luminance": 0.08699
}

Semantic roles & 50–950 ramp

primary
#782BAC
secondary
#91C46F
accent
#E34585
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #782BAC

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

Preview Lab → · Contrast checker → · Palette generator →

#782BAC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva