#781E7E#781E7E

#781E7E is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.3% C 0.167 H 325.3°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#781E7E
RGBrgb(120, 30, 126)
HSLhsl(296, 62%, 31%)
HSVhsv(296, 76%, 49%)
CMYKcmyk(4.8%, 76.2%, 0%, 50.6%)
CIE-LABlab(30.47, 50.36, -34.22)
CIE-LCHlch(30.47, 60.89, 325.81°)
OKLaboklab(42.26% 0.1374 -0.0952)
OKLCHoklch(42.26% 0.167 325.3)
XYZxyz(11.9756, 6.4288, 20.3447)
Luminance0.0643 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781E7E #247E1E
analogous
#481E7E #781E7E #7E1E54
triadic
#781E7E #7E781E #1E7E78
tetradic
#781E7E #7E481E #247E1E #1E547E
square
#781E7E #7E481E #247E1E #1E547E
split-complementary
#781E7E #547E1E #1E7E48
monochromatic
#1A061B #49124D #781E7E #A72AAF #CA44D2

Accessibility & contrast

On white

9.19
#781E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#781E7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781E7E
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781E7E#FFFFFF#000000##FFFFFF
##781E7E1.009.192.299.19
#FFFFFF9.191.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004181
Deuteranopia (green-blind)
#334B7C
Tritanopia (blue-blind)
#7B2F4D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #781e7e;
/* rgb */ color: rgb(120, 30, 126);
/* oklch */ color: oklch(42.3% 0.167 325.3);
Tailwind
colors: {
  custom: {
    50: '#a264a4',
    500: '#781e7e',
    950: '#000000',
  },
}
SCSS
$custom: #781e7e;
$custom-light: #a264a4;
$custom-dark: #000000;
JSON
{
  "hex": "#781e7e",
  "rgb": {
    "r": 120,
    "g": 30,
    "b": 126
  },
  "hsl": {
    "h": 296.25,
    "s": 61.538,
    "l": 30.588
  },
  "oklch": {
    "l": 0.42259,
    "c": 0.16717,
    "h": 325.3
  },
  "luminance": 0.06428
}

Semantic roles & 50–950 ramp

primary
#781E7E
secondary
#4DB147
accent
#E5434D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #781E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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