#781CB3#781CB3

#781CB3 is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 46.1% C 0.216 H 306.8°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#781CB3
RGBrgb(120, 28, 179)
HSLhsl(277, 73%, 41%)
HSVhsv(277, 84%, 70%)
CMYKcmyk(33%, 84.4%, 0%, 29.8%)
CIE-LABlab(34.15, 61.62, -60.66)
CIE-LCHlch(34.15, 86.47, 315.45°)
OKLaboklab(46.07% 0.129 -0.1728)
OKLCHoklch(46.07% 0.216 306.8)
XYZxyz(16.2959, 8.0784, 43.3399)
Luminance0.0808 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781CB3 #57B31C
analogous
#2C1CB3 #781CB3 #B31CA2
triadic
#781CB3 #B3781C #1CB378
tetradic
#781CB3 #B32C1C #57B31C #1CA2B3
square
#781CB3 #B32C1C #57B31C #1CA2B3
split-complementary
#781CB3 #A2B31C #1CB32C
monochromatic
#310B49 #55147E #781CB3 #992EDE #B363E7

Accessibility & contrast

On white

8.03
#781CB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #781CB3
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781CB3#FFFFFF#000000##FFFFFF
##781CB31.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #781cb3;
/* rgb */ color: rgb(120, 28, 179);
/* oklch */ color: oklch(46.1% 0.216 306.8);
Tailwind
colors: {
  custom: {
    50: '#a566cb',
    500: '#781cb3',
    950: '#000000',
  },
}
SCSS
$custom: #781cb3;
$custom-light: #a566cb;
$custom-dark: #000000;
JSON
{
  "hex": "#781cb3",
  "rgb": {
    "r": 120,
    "g": 28,
    "b": 179
  },
  "hsl": {
    "h": 276.556,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46066,
    "c": 0.21566,
    "h": 306.8
  },
  "luminance": 0.08078
}

Semantic roles & 50–950 ramp

primary
#781CB3
secondary
#8ACB5F
accent
#F03880
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #781CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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