#781C7A#781C7A

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

Color values

HEX#781C7A
RGBrgb(120, 28, 122)
HSLhsl(299, 63%, 29%)
HSVhsv(299, 77%, 48%)
CMYKcmyk(1.6%, 77%, 0%, 52.2%)
CIE-LABlab(29.98, 50.33, -32.47)
CIE-LCHlch(29.98, 59.90, 327.17°)
OKLaboklab(41.83% 0.1394 -0.0901)
OKLCHoklch(41.83% 0.166 327.1)
XYZxyz(11.6736, 6.2295, 18.9962)
Luminance0.0623 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781C7A #1E7A1C
analogous
#491C7A #781C7A #7A1C4D
triadic
#781C7A #7A781C #1C7A78
tetradic
#781C7A #7A491C #1E7A1C #1C4D7A
square
#781C7A #7A491C #1E7A1C #1C4D7A
split-complementary
#781C7A #4D7A1C #1C7A49
monochromatic
#180619 #471148 #781C7A #A927AC #CF3ED3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##781C7A#FFFFFF#000000##FFFFFF
##781C7A1.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)
#033F7D
Deuteranopia (green-blind)
#344B78
Tritanopia (blue-blind)
#7C2C4A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #781c7a;
/* rgb */ color: rgb(120, 28, 122);
/* oklch */ color: oklch(41.8% 0.166 327.1);
Tailwind
colors: {
  custom: {
    50: '#a263a1',
    500: '#781c7a',
    950: '#000000',
  },
}
SCSS
$custom: #781c7a;
$custom-light: #a263a1;
$custom-dark: #000000;
JSON
{
  "hex": "#781c7a",
  "rgb": {
    "r": 120,
    "g": 28,
    "b": 122
  },
  "hsl": {
    "h": 298.723,
    "s": 62.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.41834,
    "c": 0.16602,
    "h": 327.1
  },
  "luminance": 0.06229
}

Semantic roles & 50–950 ramp

primary
#781C7A
secondary
#46AE44
accent
#E64246
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060F
muted
#7F7A7E

Preview Lab

Preview with #781C7A

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

Preview Lab → · Contrast checker → · Palette generator →

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