#781EA7#781EA7

#781EA7 is a mid, highly saturated violet. Relative luminance 0.077; OKLCH L 45.2% C 0.203 H 310.1°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#781EA7
RGBrgb(120, 30, 167)
HSLhsl(279, 70%, 39%)
HSVhsv(279, 82%, 65%)
CMYKcmyk(28.1%, 82%, 0%, 34.5%)
CIE-LABlab(33.38, 58.47, -54.74)
CIE-LCHlch(33.38, 80.09, 316.89°)
OKLaboklab(45.23% 0.131 -0.1554)
OKLCHoklch(45.23% 0.203 310.1)
XYZxyz(15.1837, 7.7120, 37.2404)
Luminance0.0771 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781EA7 #4DA71E
analogous
#331EA7 #781EA7 #A71E91
triadic
#781EA7 #A7781E #1EA778
tetradic
#781EA7 #A7331E #4DA71E #1E91A7
square
#781EA7 #A7331E #4DA71E #1E91A7
split-complementary
#781EA7 #91A71E #1EA733
monochromatic
#2D0B3F #531573 #781EA7 #9D2AD9 #B55DE2

Accessibility & contrast

On white

8.26
#781EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#781EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781EA7
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781EA7#FFFFFF#000000##FFFFFF
##781EA71.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAB
Deuteranopia (green-blind)
#0050A4
Tritanopia (blue-blind)
#714264
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #781ea7;
/* rgb */ color: rgb(120, 30, 167);
/* oklch */ color: oklch(45.2% 0.203 310.1);
Tailwind
colors: {
  custom: {
    50: '#a466c2',
    500: '#781ea7',
    950: '#000000',
  },
}
SCSS
$custom: #781ea7;
$custom-light: #a466c2;
$custom-dark: #000000;
JSON
{
  "hex": "#781ea7",
  "rgb": {
    "r": 120,
    "g": 30,
    "b": 167
  },
  "hsl": {
    "h": 279.416,
    "s": 69.543,
    "l": 38.627
  },
  "oklch": {
    "l": 0.45228,
    "c": 0.20326,
    "h": 310.1
  },
  "luminance": 0.07712
}

Semantic roles & 50–950 ramp

primary
#781EA7
secondary
#80C65B
accent
#EC3B78
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #781EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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