#781CA7#781CA7

#781CA7 is a mid, highly saturated violet. Relative luminance 0.076; OKLCH L 45.1% C 0.205 H 310.3°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#781CA7
RGBrgb(120, 28, 167)
HSLhsl(280, 71%, 38%)
HSVhsv(280, 83%, 65%)
CMYKcmyk(28.1%, 83.2%, 0%, 34.5%)
CIE-LABlab(33.17, 59.09, -55.08)
CIE-LCHlch(33.17, 80.78, 317.01°)
OKLaboklab(45.08% 0.1325 -0.1564)
OKLCHoklch(45.08% 0.205 310.3)
XYZxyz(15.1347, 7.6139, 37.2241)
Luminance0.0761 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781CA7 #4BA71C
analogous
#321CA7 #781CA7 #A71C90
triadic
#781CA7 #A7781C #1CA778
tetradic
#781CA7 #A7321C #4BA71C #1C90A7
square
#781CA7 #A7321C #4BA71C #1C90A7
split-complementary
#781CA7 #90A71C #1CA732
monochromatic
#2D0A3E #521373 #781CA7 #9D26DB #B55AE3

Accessibility & contrast

On white

8.32
#781CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#781CA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781CA7
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781CA7#FFFFFF#000000##FFFFFF
##781CA71.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAB
Deuteranopia (green-blind)
#004FA4
Tritanopia (blue-blind)
#714164
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #781ca7;
/* rgb */ color: rgb(120, 28, 167);
/* oklch */ color: oklch(45.1% 0.205 310.3);
Tailwind
colors: {
  custom: {
    50: '#a466c2',
    500: '#781ca7',
    950: '#000000',
  },
}
SCSS
$custom: #781ca7;
$custom-light: #a466c2;
$custom-dark: #000000;
JSON
{
  "hex": "#781ca7",
  "rgb": {
    "r": 120,
    "g": 28,
    "b": 167
  },
  "hsl": {
    "h": 279.712,
    "s": 71.282,
    "l": 38.235
  },
  "oklch": {
    "l": 0.45081,
    "c": 0.20494,
    "h": 310.3
  },
  "luminance": 0.07614
}

Semantic roles & 50–950 ramp

primary
#781CA7
secondary
#7DC758
accent
#EE3A77
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100612
muted
#7F7A81

Preview Lab

Preview with #781CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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