#781D7C#781D7C

#781D7C is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.0% C 0.167 H 326.2°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#781D7C
RGBrgb(120, 29, 124)
HSLhsl(297, 62%, 30%)
HSVhsv(297, 77%, 49%)
CMYKcmyk(3.2%, 76.6%, 0%, 51.4%)
CIE-LABlab(30.22, 50.35, -33.35)
CIE-LCHlch(30.22, 60.39, 326.48°)
OKLaboklab(42.05% 0.1384 -0.0927)
OKLCHoklch(42.05% 0.167 326.2)
XYZxyz(11.8230, 6.3278, 19.6635)
Luminance0.0633 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781D7C #217C1D
analogous
#491D7C #781D7C #7C1D50
triadic
#781D7C #7C781D #1D7C78
tetradic
#781D7C #7C491D #217C1D #1D507C
square
#781D7C #7C491D #217C1D #1D507C
split-complementary
#781D7C #507C1D #1D7C49
monochromatic
#180619 #48114A #781D7C #A829AE #CC41D3

Accessibility & contrast

On white

9.27
#781D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#781D7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781D7C
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781D7C#FFFFFF#000000##FFFFFF
##781D7C1.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01407F
Deuteranopia (green-blind)
#334B7A
Tritanopia (blue-blind)
#7B2D4B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #781d7c;
/* rgb */ color: rgb(120, 29, 124);
/* oklch */ color: oklch(42.0% 0.167 326.2);
Tailwind
colors: {
  custom: {
    50: '#a264a2',
    500: '#781d7c',
    950: '#000000',
  },
}
SCSS
$custom: #781d7c;
$custom-light: #a264a2;
$custom-dark: #000000;
JSON
{
  "hex": "#781d7c",
  "rgb": {
    "r": 120,
    "g": 29,
    "b": 124
  },
  "hsl": {
    "h": 297.474,
    "s": 62.092,
    "l": 30
  },
  "oklch": {
    "l": 0.42045,
    "c": 0.1666,
    "h": 326.2
  },
  "luminance": 0.06327
}

Semantic roles & 50–950 ramp

primary
#781D7C
secondary
#4AB045
accent
#E54349
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #781D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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