#781D7E#781D7E

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

Color values

HEX#781D7E
RGBrgb(120, 29, 126)
HSLhsl(296, 63%, 30%)
HSVhsv(296, 77%, 49%)
CMYKcmyk(4.8%, 77%, 0%, 50.6%)
CIE-LABlab(30.35, 50.71, -34.41)
CIE-LCHlch(30.35, 61.28, 325.84°)
OKLaboklab(42.17% 0.1383 -0.0958)
OKLCHoklch(42.17% 0.168 325.3)
XYZxyz(11.9507, 6.3789, 20.3364)
Luminance0.0638 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781D7E #237E1D
analogous
#481D7E #781D7E #7E1D53
triadic
#781D7E #7E781D #1D7E78
tetradic
#781D7E #7E481D #237E1D #1D537E
square
#781D7E #7E481D #237E1D #1D537E
split-complementary
#781D7E #537E1D #1D7E48
monochromatic
#19061B #49124C #781D7E #A728B0 #CA42D3

Accessibility & contrast

On white

9.23
#781D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#781D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781D7E
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781D7E#FFFFFF#000000##FFFFFF
##781D7E1.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004081
Deuteranopia (green-blind)
#324B7C
Tritanopia (blue-blind)
#7B2E4C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #781d7e;
/* rgb */ color: rgb(120, 29, 126);
/* oklch */ color: oklch(42.2% 0.168 325.3);
Tailwind
colors: {
  custom: {
    50: '#a264a4',
    500: '#781d7e',
    950: '#000000',
  },
}
SCSS
$custom: #781d7e;
$custom-light: #a264a4;
$custom-dark: #000000;
JSON
{
  "hex": "#781d7e",
  "rgb": {
    "r": 120,
    "g": 29,
    "b": 126
  },
  "hsl": {
    "h": 296.289,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.42173,
    "c": 0.16827,
    "h": 325.3
  },
  "luminance": 0.06378
}

Semantic roles & 50–950 ramp

primary
#781D7E
secondary
#4CB145
accent
#E6424C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #781D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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