#781E76#781E76

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

Color values

HEX#781E76
RGBrgb(120, 30, 118)
HSLhsl(301, 60%, 29%)
HSVhsv(301, 75%, 47%)
CMYKcmyk(0%, 75%, 1.7%, 52.9%)
CIE-LABlab(29.99, 48.94, -29.94)
CIE-LCHlch(29.99, 57.37, 328.55°)
OKLaboklab(41.76% 0.1375 -0.0828)
OKLCHoklch(41.76% 0.161 328.9)
XYZxyz(11.4799, 6.2305, 17.7340)
Luminance0.0623 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781E76 #1E7820
analogous
#4D1E78 #781E76 #781E49
triadic
#781E76 #76781E #1E7678
tetradic
#781E76 #784D1E #1E7820 #1E4978
square
#781E76 #784D1E #1E7820 #1E4978
split-complementary
#781E76 #49781E #1E784D
monochromatic
#180618 #471246 #781E76 #A92AA6 #CF41CC

Accessibility & contrast

On white

9.35
#781E76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#781E76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781E76
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781E76#FFFFFF#000000##FFFFFF
##781E761.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#103F78
Deuteranopia (green-blind)
#374B74
Tritanopia (blue-blind)
#7C2B48
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #781e76;
/* rgb */ color: rgb(120, 30, 118);
/* oklch */ color: oklch(41.8% 0.161 328.9);
Tailwind
colors: {
  custom: {
    50: '#a2649e',
    500: '#781e76',
    950: '#000000',
  },
}
SCSS
$custom: #781e76;
$custom-light: #a2649e;
$custom-dark: #000000;
JSON
{
  "hex": "#781e76",
  "rgb": {
    "r": 120,
    "g": 30,
    "b": 118
  },
  "hsl": {
    "h": 301.333,
    "s": 60,
    "l": 29.412
  },
  "oklch": {
    "l": 0.41758,
    "c": 0.1605,
    "h": 328.9
  },
  "luminance": 0.0623
}

Semantic roles & 50–950 ramp

primary
#781E76
secondary
#46AC48
accent
#E34845
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #781E76

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

Preview Lab → · Contrast checker → · Palette generator →

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