#781D7A#781D7A

#781D7A is a dark, vivid purple. Relative luminance 0.063; OKLCH L 41.9% C 0.165 H 327.1°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#781D7A
RGBrgb(120, 29, 122)
HSLhsl(299, 62%, 30%)
HSVhsv(299, 76%, 48%)
CMYKcmyk(1.6%, 76.2%, 0%, 52.2%)
CIE-LABlab(30.10, 49.99, -32.28)
CIE-LCHlch(30.10, 59.51, 327.15°)
OKLaboklab(41.92% 0.1385 -0.0896)
OKLCHoklch(41.92% 0.165 327.1)
XYZxyz(11.6978, 6.2778, 19.0042)
Luminance0.0628 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781D7A #1F7A1D
analogous
#4A1D7A #781D7A #7A1D4D
triadic
#781D7A #7A781D #1D7A78
tetradic
#781D7A #7A4A1D #1F7A1D #1D4D7A
square
#781D7A #7A4A1D #1F7A1D #1D4D7A
split-complementary
#781D7A #4D7A1D #1D7A4A
monochromatic
#180619 #471149 #781D7A #A929AB #CE40D2

Accessibility & contrast

On white

9.31
#781D7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#781D7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781D7A
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781D7A#FFFFFF#000000##FFFFFF
##781D7A1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#053F7D
Deuteranopia (green-blind)
#354B78
Tritanopia (blue-blind)
#7C2C4A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #781d7a;
/* rgb */ color: rgb(120, 29, 122);
/* oklch */ color: oklch(41.9% 0.165 327.1);
Tailwind
colors: {
  custom: {
    50: '#a264a1',
    500: '#781d7a',
    950: '#000000',
  },
}
SCSS
$custom: #781d7a;
$custom-light: #a264a1;
$custom-dark: #000000;
JSON
{
  "hex": "#781d7a",
  "rgb": {
    "r": 120,
    "g": 29,
    "b": 122
  },
  "hsl": {
    "h": 298.71,
    "s": 61.589,
    "l": 29.608
  },
  "oklch": {
    "l": 0.41918,
    "c": 0.16493,
    "h": 327.1
  },
  "luminance": 0.06277
}

Semantic roles & 50–950 ramp

primary
#781D7A
secondary
#47AE45
accent
#E54347
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060F
muted
#7F7A7E

Preview Lab

Preview with #781D7A

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

Preview Lab → · Contrast checker → · Palette generator →

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