#781C99#781C99

#781C99 is a dark, vivid purple. Relative luminance 0.071; OKLCH L 44.0% C 0.193 H 314.8°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#781C99
RGBrgb(120, 28, 153)
HSLhsl(284, 69%, 35%)
HSVhsv(284, 82%, 60%)
CMYKcmyk(21.6%, 81.7%, 0%, 40%)
CIE-LABlab(32.09, 56.22, -48.34)
CIE-LCHlch(32.09, 74.14, 319.31°)
OKLaboklab(43.99% 0.1357 -0.1366)
OKLCHoklch(43.99% 0.193 314.8)
XYZxyz(13.9098, 7.1240, 30.7732)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781C99 #3D991C
analogous
#391C99 #781C99 #991C7B
triadic
#781C99 #99781C #1C9978
tetradic
#781C99 #99391C #3D991C #1C7B99
square
#781C99 #99391C #3D991C #1C7B99
split-complementary
#781C99 #7B991C #1C9939
monochromatic
#270932 #4F1365 #781C99 #A125CD #B950DF

Accessibility & contrast

On white

8.66
#781C99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#781C99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781C99
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781C99#FFFFFF#000000##FFFFFF
##781C991.008.662.428.66
#FFFFFF8.661.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479C
Deuteranopia (green-blind)
#134E96
Tritanopia (blue-blind)
#753B5B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #781c99;
/* rgb */ color: rgb(120, 28, 153);
/* oklch */ color: oklch(44.0% 0.193 314.8);
Tailwind
colors: {
  custom: {
    50: '#a365b8',
    500: '#781c99',
    950: '#000000',
  },
}
SCSS
$custom: #781c99;
$custom-light: #a365b8;
$custom-dark: #000000;
JSON
{
  "hex": "#781c99",
  "rgb": {
    "r": 120,
    "g": 28,
    "b": 153
  },
  "hsl": {
    "h": 284.16,
    "s": 69.061,
    "l": 35.49
  },
  "oklch": {
    "l": 0.4399,
    "c": 0.19257,
    "h": 314.8
  },
  "luminance": 0.07123
}

Semantic roles & 50–950 ramp

primary
#781C99
secondary
#6DC24F
accent
#EC3C6A
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #781C99

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

Preview Lab → · Contrast checker → · Palette generator →

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