#781D71#781D71

#781D71 is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.4% C 0.158 H 331.4°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#781D71
RGBrgb(120, 29, 113)
HSLhsl(305, 61%, 29%)
HSVhsv(305, 76%, 47%)
CMYKcmyk(0%, 75.8%, 5.8%, 52.9%)
CIE-LABlab(29.58, 48.43, -27.40)
CIE-LCHlch(29.58, 55.65, 330.50°)
OKLaboklab(41.37% 0.1384 -0.0754)
OKLCHoklch(41.37% 0.158 331.4)
XYZxyz(11.1657, 6.0650, 16.2022)
Luminance0.0606 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781D71 #1D7824
analogous
#521D78 #781D71 #781D44
triadic
#781D71 #71781D #1D7178
tetradic
#781D71 #78521D #1D7824 #1D4478
square
#781D71 #78521D #1D7824 #1D4478
split-complementary
#781D71 #44781D #1D7852
monochromatic
#190617 #471143 #781D71 #A9299F #D13FC5

Accessibility & contrast

On white

9.49
#781D71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#781D71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781D71
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781D71#FFFFFF#000000##FFFFFF
##781D711.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153E73
Deuteranopia (green-blind)
#3A4A6F
Tritanopia (blue-blind)
#7D2845
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #781d71;
/* rgb */ color: rgb(120, 29, 113);
/* oklch */ color: oklch(41.4% 0.158 331.4);
Tailwind
colors: {
  custom: {
    50: '#a2639a',
    500: '#781d71',
    950: '#000000',
  },
}
SCSS
$custom: #781d71;
$custom-light: #a2639a;
$custom-dark: #000000;
JSON
{
  "hex": "#781d71",
  "rgb": {
    "r": 120,
    "g": 29,
    "b": 113
  },
  "hsl": {
    "h": 304.615,
    "s": 61.074,
    "l": 29.216
  },
  "oklch": {
    "l": 0.41371,
    "c": 0.15761,
    "h": 331.4
  },
  "luminance": 0.06064
}

Semantic roles & 50–950 ramp

primary
#781D71
secondary
#45AC4D
accent
#E45044
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #781D71

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

Preview Lab → · Contrast checker → · Palette generator →

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