#781B6A#781B6A

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

Color values

HEX#781B6A
RGBrgb(120, 27, 106)
HSLhsl(309, 63%, 29%)
HSVhsv(309, 78%, 47%)
CMYKcmyk(0%, 77.5%, 11.7%, 52.9%)
CIE-LABlab(28.95, 47.97, -23.90)
CIE-LCHlch(28.95, 53.60, 333.52°)
OKLaboklab(40.8% 0.14 -0.0653)
OKLCHoklch(40.8% 0.154 335)
XYZxyz(10.7393, 5.8185, 14.1904)
Luminance0.0582 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781B6A #1B7829
analogous
#581B78 #781B6A #781B3C
triadic
#781B6A #6A781B #1B6A78
tetradic
#781B6A #78581B #1B7829 #1B3C78
square
#781B6A #78581B #1B7829 #1B3C78
split-complementary
#781B6A #3C781B #1B7858
monochromatic
#190616 #46103E #781B6A #AA2696 #D33BBC

Accessibility & contrast

On white

9.71
#781B6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #781B6A
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781B6A#FFFFFF#000000##FFFFFF
##781B6A1.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3B6C
Deuteranopia (green-blind)
#3C4968
Tritanopia (blue-blind)
#7E2341
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #781b6a;
/* rgb */ color: rgb(120, 27, 106);
/* oklch */ color: oklch(40.8% 0.154 335.0);
Tailwind
colors: {
  custom: {
    50: '#a26295',
    500: '#781b6a',
    950: '#000000',
  },
}
SCSS
$custom: #781b6a;
$custom-light: #a26295;
$custom-dark: #000000;
JSON
{
  "hex": "#781b6a",
  "rgb": {
    "r": 120,
    "g": 27,
    "b": 106
  },
  "hsl": {
    "h": 309.032,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.40796,
    "c": 0.15446,
    "h": 335
  },
  "luminance": 0.05818
}

Semantic roles & 50–950 ramp

primary
#781B6A
secondary
#43AC52
accent
#E65A41
background
#FAF6F9
surface
#F4EBF1
border
#CEC6CB
text
#0F060D
muted
#7F7A7E

Preview Lab

Preview with #781B6A

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

Preview Lab → · Contrast checker → · Palette generator →

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