#781E71#781E71

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

Color values

HEX#781E71
RGBrgb(120, 30, 113)
HSLhsl(305, 60%, 29%)
HSVhsv(305, 75%, 47%)
CMYKcmyk(0%, 75%, 5.8%, 52.9%)
CIE-LABlab(29.70, 48.08, -27.21)
CIE-LCHlch(29.70, 55.24, 330.49°)
OKLaboklab(41.46% 0.1374 -0.0749)
OKLCHoklch(41.46% 0.156 331.4)
XYZxyz(11.1906, 6.1148, 16.2105)
Luminance0.0611 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781E71 #1E7825
analogous
#521E78 #781E71 #781E44
triadic
#781E71 #71781E #1E7178
tetradic
#781E71 #78521E #1E7825 #1E4478
square
#781E71 #78521E #1E7825 #1E4478
split-complementary
#781E71 #44781E #1E7852
monochromatic
#180617 #471243 #781E71 #A92A9F #CF41C4

Accessibility & contrast

On white

9.45
#781E71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#781E71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781E71
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781E71#FFFFFF#000000##FFFFFF
##781E711.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #781e71;
/* rgb */ color: rgb(120, 30, 113);
/* oklch */ color: oklch(41.5% 0.156 331.4);
Tailwind
colors: {
  custom: {
    50: '#a2649a',
    500: '#781e71',
    950: '#000000',
  },
}
SCSS
$custom: #781e71;
$custom-light: #a2649a;
$custom-dark: #000000;
JSON
{
  "hex": "#781e71",
  "rgb": {
    "r": 120,
    "g": 30,
    "b": 113
  },
  "hsl": {
    "h": 304.667,
    "s": 60,
    "l": 29.412
  },
  "oklch": {
    "l": 0.4146,
    "c": 0.15644,
    "h": 331.4
  },
  "luminance": 0.06114
}

Semantic roles & 50–950 ramp

primary
#781E71
secondary
#46AC4E
accent
#E35145
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #781E71

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

Preview Lab → · Contrast checker → · Palette generator →

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