#781EB3#781EB3

#781EB3 is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 46.2% C 0.214 H 306.6°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#781EB3
RGBrgb(120, 30, 179)
HSLhsl(276, 71%, 41%)
HSVhsv(276, 83%, 70%)
CMYKcmyk(33%, 83.2%, 0%, 29.8%)
CIE-LABlab(34.35, 61.03, -60.33)
CIE-LCHlch(34.35, 85.82, 315.33°)
OKLaboklab(46.21% 0.1277 -0.1718)
OKLCHoklch(46.21% 0.214 306.6)
XYZxyz(16.3449, 8.1765, 43.3562)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781EB3 #59B31E
analogous
#2E1EB3 #781EB3 #B31EA3
triadic
#781EB3 #B3781E #1EB378
tetradic
#781EB3 #B32E1E #59B31E #1EA3B3
square
#781EB3 #B32E1E #59B31E #1EA3B3
split-complementary
#781EB3 #A3B31E #1EB32E
monochromatic
#320C4A #55157F #781EB3 #9932DD #B366E5

Accessibility & contrast

On white

7.97
#781EB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#781EB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781EB3
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781EB3#FFFFFF#000000##FFFFFF
##781EB31.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.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: #781eb3;
/* rgb */ color: rgb(120, 30, 179);
/* oklch */ color: oklch(46.2% 0.214 306.6);
Tailwind
colors: {
  custom: {
    50: '#a567cb',
    500: '#781eb3',
    950: '#000000',
  },
}
SCSS
$custom: #781eb3;
$custom-light: #a567cb;
$custom-dark: #000000;
JSON
{
  "hex": "#781eb3",
  "rgb": {
    "r": 120,
    "g": 30,
    "b": 179
  },
  "hsl": {
    "h": 276.242,
    "s": 71.292,
    "l": 40.98
  },
  "oklch": {
    "l": 0.46206,
    "c": 0.21411,
    "h": 306.6
  },
  "luminance": 0.08176
}

Semantic roles & 50–950 ramp

primary
#781EB3
secondary
#8CCB62
accent
#EE3A81
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #781EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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