#781FB0#781FB0

#781FB0 is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 46.0% C 0.211 H 307.4°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#781FB0
RGBrgb(120, 31, 176)
HSLhsl(277, 70%, 41%)
HSVhsv(277, 82%, 69%)
CMYKcmyk(31.8%, 82.4%, 0%, 31%)
CIE-LABlab(34.21, 60.07, -58.78)
CIE-LCHlch(34.21, 84.04, 315.63°)
OKLaboklab(46.03% 0.1279 -0.1673)
OKLCHoklch(46.03% 0.211 307.4)
XYZxyz(16.0705, 8.1079, 41.7842)
Luminance0.0811 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781FB0 #57B01F
analogous
#301FB0 #781FB0 #B01F9F
triadic
#781FB0 #B0781F #1FB078
tetradic
#781FB0 #B0301F #57B01F #1F9FB0
square
#781FB0 #B0301F #57B01F #1F9FB0
split-complementary
#781FB0 #9FB01F #1FB030
monochromatic
#310D48 #55167C #781FB0 #9931DB #B365E4

Accessibility & contrast

On white

8.01
#781FB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#781FB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781FB0
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781FB0#FFFFFF#000000##FFFFFF
##781FB01.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB4
Deuteranopia (green-blind)
#0051AD
Tritanopia (blue-blind)
#6E4669
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #781fb0;
/* rgb */ color: rgb(120, 31, 176);
/* oklch */ color: oklch(46.0% 0.211 307.4);
Tailwind
colors: {
  custom: {
    50: '#a567c9',
    500: '#781fb0',
    950: '#000000',
  },
}
SCSS
$custom: #781fb0;
$custom-light: #a567c9;
$custom-dark: #000000;
JSON
{
  "hex": "#781fb0",
  "rgb": {
    "r": 120,
    "g": 31,
    "b": 176
  },
  "hsl": {
    "h": 276.828,
    "s": 70.048,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46031,
    "c": 0.21057,
    "h": 307.4
  },
  "luminance": 0.08108
}

Semantic roles & 50–950 ramp

primary
#781FB0
secondary
#8AC962
accent
#ED3B80
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #781FB0

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

Preview Lab → · Contrast checker → · Palette generator →

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