#781FB4#781FB4

#781FB4 is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 46.4% C 0.214 H 306.3°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#781FB4
RGBrgb(120, 31, 180)
HSLhsl(276, 71%, 41%)
HSVhsv(276, 83%, 71%)
CMYKcmyk(33.3%, 82.8%, 0%, 29.4%)
CIE-LABlab(34.54, 60.94, -60.62)
CIE-LCHlch(34.54, 85.96, 315.15°)
OKLaboklab(46.36% 0.1268 -0.1727)
OKLCHoklch(46.36% 0.214 306.3)
XYZxyz(16.4721, 8.2685, 43.8994)
Luminance0.0827 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781FB4 #5BB41F
analogous
#2E1FB4 #781FB4 #B41FA6
triadic
#781FB4 #B4781F #1FB478
tetradic
#781FB4 #B42E1F #5BB41F #1FA6B4
square
#781FB4 #B42E1F #5BB41F #1FA6B4
split-complementary
#781FB4 #A6B41F #1FB42E
monochromatic
#320D4C #551680 #781FB4 #9834DC #B368E5

Accessibility & contrast

On white

7.91
#781FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#781FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781FB4
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781FB4#FFFFFF#000000##FFFFFF
##781FB41.007.912.657.91
#FFFFFF7.911.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB8
Deuteranopia (green-blind)
#0052B1
Tritanopia (blue-blind)
#6D486C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #781fb4;
/* rgb */ color: rgb(120, 31, 180);
/* oklch */ color: oklch(46.4% 0.214 306.3);
Tailwind
colors: {
  custom: {
    50: '#a568cb',
    500: '#781fb4',
    950: '#000000',
  },
}
SCSS
$custom: #781fb4;
$custom-light: #a568cb;
$custom-dark: #000000;
JSON
{
  "hex": "#781fb4",
  "rgb": {
    "r": 120,
    "g": 31,
    "b": 180
  },
  "hsl": {
    "h": 275.839,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.46362,
    "c": 0.21421,
    "h": 306.3
  },
  "luminance": 0.08268
}

Semantic roles & 50–950 ramp

primary
#781FB4
secondary
#8DCB64
accent
#ED3A82
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #781FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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