#781AB4#781AB4

#781AB4 is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 46.0% C 0.218 H 306.6°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#781AB4
RGBrgb(120, 26, 180)
HSLhsl(277, 75%, 40%)
HSVhsv(277, 86%, 71%)
CMYKcmyk(33.3%, 85.6%, 0%, 29.4%)
CIE-LABlab(34.04, 62.40, -61.43)
CIE-LCHlch(34.04, 87.56, 315.45°)
OKLaboklab(46.02% 0.13 -0.175)
OKLCHoklch(46.02% 0.218 306.6)
XYZxyz(16.3515, 8.0273, 43.8592)
Luminance0.0803 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781AB4 #56B41A
analogous
#2B1AB4 #781AB4 #B41AA3
triadic
#781AB4 #B4781A #1AB478
tetradic
#781AB4 #B42B1A #56B41A #1AA3B4
square
#781AB4 #B42B1A #56B41A #1AA3B4
split-complementary
#781AB4 #A3B41A #1AB42B
monochromatic
#310B49 #54127F #781AB4 #9A2BE0 #B360E8

Accessibility & contrast

On white

8.06
#781AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#781AB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781AB4
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781AB4#FFFFFF#000000##FFFFFF
##781AB41.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB8
Deuteranopia (green-blind)
#0050B1
Tritanopia (blue-blind)
#6D476B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #781ab4;
/* rgb */ color: rgb(120, 26, 180);
/* oklch */ color: oklch(46.0% 0.218 306.6);
Tailwind
colors: {
  custom: {
    50: '#a566cb',
    500: '#781ab4',
    950: '#000000',
  },
}
SCSS
$custom: #781ab4;
$custom-light: #a566cb;
$custom-dark: #000000;
JSON
{
  "hex": "#781ab4",
  "rgb": {
    "r": 120,
    "g": 26,
    "b": 180
  },
  "hsl": {
    "h": 276.623,
    "s": 74.757,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46019,
    "c": 0.21801,
    "h": 306.6
  },
  "luminance": 0.08027
}

Semantic roles & 50–950 ramp

primary
#781AB4
secondary
#89CC5D
accent
#F1367F
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #781AB4

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

Preview Lab → · Contrast checker → · Palette generator →

#781AB4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva