#781C79#781C79

#781C79 is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.8% C 0.165 H 327.6°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#781C79
RGBrgb(120, 28, 121)
HSLhsl(299, 62%, 29%)
HSVhsv(299, 77%, 47%)
CMYKcmyk(0.8%, 76.9%, 0%, 52.5%)
CIE-LABlab(29.92, 50.15, -31.94)
CIE-LCHlch(29.92, 59.46, 327.51°)
OKLaboklab(41.77% 0.1394 -0.0886)
OKLCHoklch(41.77% 0.165 327.6)
XYZxyz(11.6120, 6.2049, 18.6715)
Luminance0.0620 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781C79 #1D791C
analogous
#4A1C79 #781C79 #791C4C
triadic
#781C79 #79781C #1C7978
tetradic
#781C79 #794A1C #1D791C #1C4C79
square
#781C79 #794A1C #1D791C #1C4C79
split-complementary
#781C79 #4C791C #1C794A
monochromatic
#190619 #471047 #781C79 #A928AB #D13DD2

Accessibility & contrast

On white

9.37
#781C79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#781C79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781C79
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781C79#FFFFFF#000000##FFFFFF
##781C791.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#053F7C
Deuteranopia (green-blind)
#354B77
Tritanopia (blue-blind)
#7C2B49
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #781c79;
/* rgb */ color: rgb(120, 28, 121);
/* oklch */ color: oklch(41.8% 0.165 327.6);
Tailwind
colors: {
  custom: {
    50: '#a263a0',
    500: '#781c79',
    950: '#000000',
  },
}
SCSS
$custom: #781c79;
$custom-light: #a263a0;
$custom-dark: #000000;
JSON
{
  "hex": "#781c79",
  "rgb": {
    "r": 120,
    "g": 28,
    "b": 121
  },
  "hsl": {
    "h": 299.355,
    "s": 62.416,
    "l": 29.216
  },
  "oklch": {
    "l": 0.41771,
    "c": 0.1652,
    "h": 327.6
  },
  "luminance": 0.06204
}

Semantic roles & 50–950 ramp

primary
#781C79
secondary
#45AD44
accent
#E54244
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060F
muted
#7F7A7E

Preview Lab

Preview with #781C79

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

Preview Lab → · Contrast checker → · Palette generator →

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