#782BAD#782BAD

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

Color values

HEX#782BAD
RGBrgb(120, 43, 173)
HSLhsl(276, 60%, 42%)
HSVhsv(276, 75%, 68%)
CMYKcmyk(30.6%, 75.1%, 0%, 32.2%)
CIE-LABlab(35.48, 55.07, -54.92)
CIE-LCHlch(35.48, 77.77, 315.08°)
OKLaboklab(46.85% 0.1188 -0.156)
OKLCHoklch(46.85% 0.196 307.3)
XYZxyz(16.1508, 8.7382, 40.3629)
Luminance0.0874 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782BAD #60AD2B
analogous
#372BAD #782BAD #AD2BA1
triadic
#782BAD #AD782B #2BAD78
tetradic
#782BAD #AD372B #60AD2B #2BA1AD
square
#782BAD #AD372B #60AD2B #2BA1AD
split-complementary
#782BAD #A1AD2B #2BAD37
monochromatic
#34134B #561F7C #782BAD #9845D1 #B376DD

Accessibility & contrast

On white

7.64
#782BAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#782BAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782BAD
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782BAD#FFFFFF#000000##FFFFFF
##782BAD1.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B1
Deuteranopia (green-blind)
#0054AA
Tritanopia (blue-blind)
#6F4B6A
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #782bad;
/* rgb */ color: rgb(120, 43, 173);
/* oklch */ color: oklch(46.8% 0.196 307.3);
Tailwind
colors: {
  custom: {
    50: '#a46cc6',
    500: '#782bad',
    950: '#000000',
  },
}
SCSS
$custom: #782bad;
$custom-light: #a46cc6;
$custom-dark: #000000;
JSON
{
  "hex": "#782bad",
  "rgb": {
    "r": 120,
    "g": 43,
    "b": 173
  },
  "hsl": {
    "h": 275.538,
    "s": 60.185,
    "l": 42.353
  },
  "oklch": {
    "l": 0.46846,
    "c": 0.19608,
    "h": 307.3
  },
  "luminance": 0.08738
}

Semantic roles & 50–950 ramp

primary
#782BAD
secondary
#92C46F
accent
#E34485
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #782BAD

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

Preview Lab → · Contrast checker → · Palette generator →

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