#781A6B#781A6B

#781A6B is a dark, vivid purple. Relative luminance 0.058; OKLCH L 40.8% C 0.156 H 334.4°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#781A6B
RGBrgb(120, 26, 107)
HSLhsl(308, 64%, 29%)
HSVhsv(308, 78%, 47%)
CMYKcmyk(0%, 78.3%, 10.8%, 52.9%)
CIE-LABlab(28.89, 48.46, -24.64)
CIE-LCHlch(28.89, 54.37, 333.05°)
OKLaboklab(40.77% 0.141 -0.0675)
OKLCHoklch(40.77% 0.156 334.4)
XYZxyz(10.7691, 5.7943, 14.4583)
Luminance0.0579 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781A6B #1A7827
analogous
#561A78 #781A6B #781A3C
triadic
#781A6B #6B781A #1A6B78
tetradic
#781A6B #78561A #1A7827 #1A3C78
square
#781A6B #78561A #1A7827 #1A3C78
split-complementary
#781A6B #3C781A #1A7856
monochromatic
#190516 #460F3E #781A6B #AA2598 #D438BE

Accessibility & contrast

On white

9.73
#781A6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#781A6B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781A6B
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781A6B#FFFFFF#000000##FFFFFF
##781A6B1.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183B6D
Deuteranopia (green-blind)
#3B4969
Tritanopia (blue-blind)
#7E2341
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #781a6b;
/* rgb */ color: rgb(120, 26, 107);
/* oklch */ color: oklch(40.8% 0.156 334.4);
Tailwind
colors: {
  custom: {
    50: '#a26295',
    500: '#781a6b',
    950: '#000000',
  },
}
SCSS
$custom: #781a6b;
$custom-light: #a26295;
$custom-dark: #000000;
JSON
{
  "hex": "#781a6b",
  "rgb": {
    "r": 120,
    "g": 26,
    "b": 107
  },
  "hsl": {
    "h": 308.298,
    "s": 64.384,
    "l": 28.627
  },
  "oklch": {
    "l": 0.40769,
    "c": 0.15632,
    "h": 334.4
  },
  "luminance": 0.05793
}

Semantic roles & 50–950 ramp

primary
#781A6B
secondary
#41AC50
accent
#E75840
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060D
muted
#7F7A7E

Preview Lab

Preview with #781A6B

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

Preview Lab → · Contrast checker → · Palette generator →

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