#781A7A#781A7A

#781A7A is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.7% C 0.168 H 327.2°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#781A7A
RGBrgb(120, 26, 122)
HSLhsl(299, 65%, 29%)
HSVhsv(299, 79%, 48%)
CMYKcmyk(1.6%, 78.7%, 0%, 52.2%)
CIE-LABlab(29.76, 50.98, -32.83)
CIE-LCHlch(29.76, 60.64, 327.22°)
OKLaboklab(41.67% 0.1412 -0.0912)
OKLCHoklch(41.67% 0.168 327.2)
XYZxyz(11.6278, 6.1378, 18.9809)
Luminance0.0614 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781A7A #1C7A1A
analogous
#481A7A #781A7A #7A1A4C
triadic
#781A7A #7A781A #1A7A78
tetradic
#781A7A #7A481A #1C7A1A #1A4C7A
square
#781A7A #7A481A #1C7A1A #1A4C7A
split-complementary
#781A7A #4C7A1A #1A7A48
monochromatic
#190519 #460F48 #781A7A #AA25AC #D239D5

Accessibility & contrast

On white

9.43
#781A7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#781A7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781A7A
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781A7A#FFFFFF#000000##FFFFFF
##781A7A1.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7D
Deuteranopia (green-blind)
#334A78
Tritanopia (blue-blind)
#7C2A49
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #781a7a;
/* rgb */ color: rgb(120, 26, 122);
/* oklch */ color: oklch(41.7% 0.168 327.2);
Tailwind
colors: {
  custom: {
    50: '#a263a1',
    500: '#781a7a',
    950: '#000000',
  },
}
SCSS
$custom: #781a7a;
$custom-light: #a263a1;
$custom-dark: #000000;
JSON
{
  "hex": "#781a7a",
  "rgb": {
    "r": 120,
    "g": 26,
    "b": 122
  },
  "hsl": {
    "h": 298.75,
    "s": 64.865,
    "l": 29.02
  },
  "oklch": {
    "l": 0.41672,
    "c": 0.16812,
    "h": 327.2
  },
  "luminance": 0.06137
}

Semantic roles & 50–950 ramp

primary
#781A7A
secondary
#44AE41
accent
#E84043
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060F
muted
#7F7A7E

Preview Lab

Preview with #781A7A

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

Preview Lab → · Contrast checker → · Palette generator →

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