#781DB3#781DB3

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

Color values

HEX#781DB3
RGBrgb(120, 29, 179)
HSLhsl(276, 72%, 41%)
HSVhsv(276, 84%, 70%)
CMYKcmyk(33%, 83.8%, 0%, 29.8%)
CIE-LABlab(34.25, 61.33, -60.50)
CIE-LCHlch(34.25, 86.15, 315.39°)
OKLaboklab(46.14% 0.1284 -0.1723)
OKLCHoklch(46.14% 0.215 306.7)
XYZxyz(16.3200, 8.1267, 43.3479)
Luminance0.0813 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781DB3 #58B31D
analogous
#2D1DB3 #781DB3 #B31DA3
triadic
#781DB3 #B3781D #1DB378
tetradic
#781DB3 #B32D1D #58B31D #1DA3B3
square
#781DB3 #B32D1D #58B31D #1DA3B3
split-complementary
#781DB3 #A3B31D #1DB32D
monochromatic
#310C4A #55147E #781DB3 #9930DD #B364E6

Accessibility & contrast

On white

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

On black

2.63
#781DB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##781DB3#FFFFFF#000000##FFFFFF
##781DB31.008.002.638.00
#FFFFFF8.001.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #781db3;
/* rgb */ color: rgb(120, 29, 179);
/* oklch */ color: oklch(46.1% 0.215 306.7);
Tailwind
colors: {
  custom: {
    50: '#a567cb',
    500: '#781db3',
    950: '#000000',
  },
}
SCSS
$custom: #781db3;
$custom-light: #a567cb;
$custom-dark: #000000;
JSON
{
  "hex": "#781db3",
  "rgb": {
    "r": 120,
    "g": 29,
    "b": 179
  },
  "hsl": {
    "h": 276.4,
    "s": 72.115,
    "l": 40.784
  },
  "oklch": {
    "l": 0.46135,
    "c": 0.2149,
    "h": 306.7
  },
  "luminance": 0.08126
}

Semantic roles & 50–950 ramp

primary
#781DB3
secondary
#8BCB61
accent
#EF3981
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #781DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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