#781DB1#781DB1

#781DB1 is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 46.0% C 0.213 H 307.3°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#781DB1
RGBrgb(120, 29, 177)
HSLhsl(277, 72%, 40%)
HSVhsv(277, 84%, 69%)
CMYKcmyk(32.2%, 83.6%, 0%, 30.6%)
CIE-LABlab(34.08, 60.90, -59.58)
CIE-LCHlch(34.08, 85.20, 315.63°)
OKLaboklab(45.97% 0.129 -0.1696)
OKLCHoklch(45.97% 0.213 307.3)
XYZxyz(16.1192, 8.0463, 42.2904)
Luminance0.0805 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781DB1 #56B11D
analogous
#2E1DB1 #781DB1 #B11DA0
triadic
#781DB1 #B1781D #1DB178
tetradic
#781DB1 #B12E1D #56B11D #1DA0B1
square
#781DB1 #B12E1D #56B11D #1DA0B1
split-complementary
#781DB1 #A0B11D #1DB12E
monochromatic
#310C48 #54147C #781DB1 #9A2EDD #B363E5

Accessibility & contrast

On white

8.05
#781DB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #781DB1
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781DB1#FFFFFF#000000##FFFFFF
##781DB11.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB5
Deuteranopia (green-blind)
#0051AE
Tritanopia (blue-blind)
#6E466A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #781db1;
/* rgb */ color: rgb(120, 29, 177);
/* oklch */ color: oklch(46.0% 0.213 307.3);
Tailwind
colors: {
  custom: {
    50: '#a567c9',
    500: '#781db1',
    950: '#000000',
  },
}
SCSS
$custom: #781db1;
$custom-light: #a567c9;
$custom-dark: #000000;
JSON
{
  "hex": "#781db1",
  "rgb": {
    "r": 120,
    "g": 29,
    "b": 177
  },
  "hsl": {
    "h": 276.892,
    "s": 71.845,
    "l": 40.392
  },
  "oklch": {
    "l": 0.45968,
    "c": 0.21309,
    "h": 307.3
  },
  "luminance": 0.08046
}

Semantic roles & 50–950 ramp

primary
#781DB1
secondary
#89CA60
accent
#EF397F
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #781DB1

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

Preview Lab → · Contrast checker → · Palette generator →

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