#781AB3#781AB3

#781AB3 is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 45.9% C 0.217 H 306.9°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#781AB3
RGBrgb(120, 26, 179)
HSLhsl(277, 75%, 40%)
HSVhsv(277, 85%, 70%)
CMYKcmyk(33%, 85.5%, 0%, 29.8%)
CIE-LABlab(33.96, 62.18, -60.97)
CIE-LCHlch(33.96, 87.09, 315.56°)
OKLaboklab(45.93% 0.1303 -0.1737)
OKLCHoklch(45.93% 0.217 306.9)
XYZxyz(16.2500, 7.9867, 43.3246)
Luminance0.0799 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781AB3 #55B31A
analogous
#2C1AB3 #781AB3 #B31AA1
triadic
#781AB3 #B3781A #1AB378
tetradic
#781AB3 #B32C1A #55B31A #1AA1B3
square
#781AB3 #B32C1A #55B31A #1AA1B3
split-complementary
#781AB3 #A1B31A #1AB32C
monochromatic
#300A48 #54127E #781AB3 #9A2AE0 #B360E8

Accessibility & contrast

On white

8.09
#781AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#781AB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781AB3
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781AB3#FFFFFF#000000##FFFFFF
##781AB31.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB7
Deuteranopia (green-blind)
#0050B0
Tritanopia (blue-blind)
#6E466A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #781ab3;
/* rgb */ color: rgb(120, 26, 179);
/* oklch */ color: oklch(45.9% 0.217 306.9);
Tailwind
colors: {
  custom: {
    50: '#a566cb',
    500: '#781ab3',
    950: '#000000',
  },
}
SCSS
$custom: #781ab3;
$custom-light: #a566cb;
$custom-dark: #000000;
JSON
{
  "hex": "#781ab3",
  "rgb": {
    "r": 120,
    "g": 26,
    "b": 179
  },
  "hsl": {
    "h": 276.863,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.45934,
    "c": 0.21713,
    "h": 306.9
  },
  "luminance": 0.07987
}

Semantic roles & 50–950 ramp

primary
#781AB3
secondary
#88CC5D
accent
#F1377F
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100613
muted
#7F7A82

Preview Lab

Preview with #781AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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