#781FB3#781FB3

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

Color values

HEX#781FB3
RGBrgb(120, 31, 179)
HSLhsl(276, 70%, 41%)
HSVhsv(276, 83%, 70%)
CMYKcmyk(33%, 82.7%, 0%, 29.8%)
CIE-LABlab(34.45, 60.72, -60.16)
CIE-LCHlch(34.45, 85.48, 315.27°)
OKLaboklab(46.28% 0.1271 -0.1713)
OKLCHoklch(46.28% 0.213 306.6)
XYZxyz(16.3706, 8.2279, 43.3648)
Luminance0.0823 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781FB3 #5AB31F
analogous
#2E1FB3 #781FB3 #B31FA4
triadic
#781FB3 #B3781F #1FB378
tetradic
#781FB3 #B32E1F #5AB31F #1FA4B3
square
#781FB3 #B32E1F #5AB31F #1FA4B3
split-complementary
#781FB3 #A4B31F #1FB32E
monochromatic
#320D4B #55167F #781FB3 #9933DC #B368E5

Accessibility & contrast

On white

7.94
#781FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #781FB3
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781FB3#FFFFFF#000000##FFFFFF
##781FB31.007.942.657.94
#FFFFFF7.941.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #781fb3;
/* rgb */ color: rgb(120, 31, 179);
/* oklch */ color: oklch(46.3% 0.213 306.6);
Tailwind
colors: {
  custom: {
    50: '#a567cb',
    500: '#781fb3',
    950: '#000000',
  },
}
SCSS
$custom: #781fb3;
$custom-light: #a567cb;
$custom-dark: #000000;
JSON
{
  "hex": "#781fb3",
  "rgb": {
    "r": 120,
    "g": 31,
    "b": 179
  },
  "hsl": {
    "h": 276.081,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.46279,
    "c": 0.21331,
    "h": 306.6
  },
  "luminance": 0.08228
}

Semantic roles & 50–950 ramp

primary
#781FB3
secondary
#8CCA64
accent
#ED3B82
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #781FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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