#781BB4#781BB4

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

Color values

HEX#781BB4
RGBrgb(120, 27, 180)
HSLhsl(276, 74%, 41%)
HSVhsv(276, 85%, 71%)
CMYKcmyk(33.3%, 85%, 0%, 29.4%)
CIE-LABlab(34.13, 62.12, -61.28)
CIE-LCHlch(34.13, 87.26, 315.39°)
OKLaboklab(46.08% 0.1294 -0.1746)
OKLCHoklch(46.08% 0.217 306.5)
XYZxyz(16.3741, 8.0724, 43.8667)
Luminance0.0807 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781BB4 #57B41B
analogous
#2C1BB4 #781BB4 #B41BA3
triadic
#781BB4 #B4781B #1BB478
tetradic
#781BB4 #B42C1B #57B41B #1BA3B4
square
#781BB4 #B42C1B #57B41B #1BA3B4
split-complementary
#781BB4 #A3B41B #1BB42C
monochromatic
#310B4A #55137F #781BB4 #992DDF #B362E7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##781BB4#FFFFFF#000000##FFFFFF
##781BB41.008.032.618.03
#FFFFFF8.031.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.031.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: #781bb4;
/* rgb */ color: rgb(120, 27, 180);
/* oklch */ color: oklch(46.1% 0.217 306.5);
Tailwind
colors: {
  custom: {
    50: '#a566cb',
    500: '#781bb4',
    950: '#000000',
  },
}
SCSS
$custom: #781bb4;
$custom-light: #a566cb;
$custom-dark: #000000;
JSON
{
  "hex": "#781bb4",
  "rgb": {
    "r": 120,
    "g": 27,
    "b": 180
  },
  "hsl": {
    "h": 276.471,
    "s": 73.913,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46083,
    "c": 0.2173,
    "h": 306.5
  },
  "luminance": 0.08072
}

Semantic roles & 50–950 ramp

primary
#781BB4
secondary
#8ACC5F
accent
#F13780
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #781BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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