#781CB4#781CB4

#781CB4 is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 46.2% C 0.217 H 306.5°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#781CB4
RGBrgb(120, 28, 180)
HSLhsl(276, 73%, 41%)
HSVhsv(276, 84%, 71%)
CMYKcmyk(33.3%, 84.4%, 0%, 29.4%)
CIE-LABlab(34.23, 61.84, -61.12)
CIE-LCHlch(34.23, 86.95, 315.33°)
OKLaboklab(46.15% 0.1287 -0.1741)
OKLCHoklch(46.15% 0.217 306.5)
XYZxyz(16.3974, 8.1190, 43.8745)
Luminance0.0812 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781CB4 #58B41C
analogous
#2C1CB4 #781CB4 #B41CA4
triadic
#781CB4 #B4781C #1CB478
tetradic
#781CB4 #B42C1C #58B41C #1CA4B4
square
#781CB4 #B42C1C #58B41C #1CA4B4
split-complementary
#781CB4 #A4B41C #1CB42C
monochromatic
#310C4A #55147F #781CB4 #992FDF #B364E7

Accessibility & contrast

On white

8.00
#781CB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#781CB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781CB4
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781CB4#FFFFFF#000000##FFFFFF
##781CB41.008.002.628.00
#FFFFFF8.001.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #781cb4;
/* rgb */ color: rgb(120, 28, 180);
/* oklch */ color: oklch(46.2% 0.217 306.5);
Tailwind
colors: {
  custom: {
    50: '#a566cb',
    500: '#781cb4',
    950: '#000000',
  },
}
SCSS
$custom: #781cb4;
$custom-light: #a566cb;
$custom-dark: #000000;
JSON
{
  "hex": "#781cb4",
  "rgb": {
    "r": 120,
    "g": 28,
    "b": 180
  },
  "hsl": {
    "h": 276.316,
    "s": 73.077,
    "l": 40.784
  },
  "oklch": {
    "l": 0.4615,
    "c": 0.21656,
    "h": 306.5
  },
  "luminance": 0.08119
}

Semantic roles & 50–950 ramp

primary
#781CB4
secondary
#8BCC60
accent
#F03881
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #781CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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