#781CA9#781CA9

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

Color values

HEX#781CA9
RGBrgb(120, 28, 169)
HSLhsl(279, 72%, 39%)
HSVhsv(279, 83%, 66%)
CMYKcmyk(29%, 83.4%, 0%, 33.7%)
CIE-LABlab(33.33, 59.51, -56.02)
CIE-LCHlch(33.33, 81.73, 316.73°)
OKLaboklab(45.24% 0.1319 -0.1592)
OKLCHoklch(45.24% 0.207 309.7)
XYZxyz(15.3210, 7.6885, 38.2054)
Luminance0.0769 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781CA9 #4DA91C
analogous
#311CA9 #781CA9 #A91C93
triadic
#781CA9 #A9781C #1CA978
tetradic
#781CA9 #A9311C #4DA91C #1C93A9
square
#781CA9 #A9311C #4DA91C #1C93A9
split-complementary
#781CA9 #93A91C #1CA931
monochromatic
#2D0B40 #531374 #781CA9 #9D27DB #B55BE4

Accessibility & contrast

On white

8.28
#781CA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #781CA9
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781CA9#FFFFFF#000000##FFFFFF
##781CA91.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAD
Deuteranopia (green-blind)
#0050A6
Tritanopia (blue-blind)
#714265
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #781ca9;
/* rgb */ color: rgb(120, 28, 169);
/* oklch */ color: oklch(45.2% 0.207 309.7);
Tailwind
colors: {
  custom: {
    50: '#a466c3',
    500: '#781ca9',
    950: '#000000',
  },
}
SCSS
$custom: #781ca9;
$custom-light: #a466c3;
$custom-dark: #000000;
JSON
{
  "hex": "#781ca9",
  "rgb": {
    "r": 120,
    "g": 28,
    "b": 169
  },
  "hsl": {
    "h": 279.149,
    "s": 71.574,
    "l": 38.627
  },
  "oklch": {
    "l": 0.45242,
    "c": 0.20672,
    "h": 309.7
  },
  "luminance": 0.07688
}

Semantic roles & 50–950 ramp

primary
#781CA9
secondary
#7FC859
accent
#EE3978
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100613
muted
#7F7A82

Preview Lab

Preview with #781CA9

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

Preview Lab → · Contrast checker → · Palette generator →

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