#781B76#781B76

#781B76 is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.5% C 0.164 H 329.0°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#781B76
RGBrgb(120, 27, 118)
HSLhsl(301, 63%, 29%)
HSVhsv(301, 78%, 47%)
CMYKcmyk(0%, 77.5%, 1.7%, 52.9%)
CIE-LABlab(29.63, 49.96, -30.50)
CIE-LCHlch(29.63, 58.54, 328.59°)
OKLaboklab(41.5% 0.1404 -0.0844)
OKLCHoklch(41.5% 0.164 329)
XYZxyz(11.4076, 6.0858, 17.7099)
Luminance0.0609 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781B76 #1B781D
analogous
#4C1B78 #781B76 #781B48
triadic
#781B76 #76781B #1B7678
tetradic
#781B76 #784C1B #1B781D #1B4878
square
#781B76 #784C1B #1B781D #1B4878
split-complementary
#781B76 #48781B #1B784C
monochromatic
#190619 #461045 #781B76 #AA26A7 #D33BD0

Accessibility & contrast

On white

9.47
#781B76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#781B76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781B76
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781B76#FFFFFF#000000##FFFFFF
##781B761.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A3E78
Deuteranopia (green-blind)
#364A74
Tritanopia (blue-blind)
#7C2947
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #781b76;
/* rgb */ color: rgb(120, 27, 118);
/* oklch */ color: oklch(41.5% 0.164 329.0);
Tailwind
colors: {
  custom: {
    50: '#a2639e',
    500: '#781b76',
    950: '#000000',
  },
}
SCSS
$custom: #781b76;
$custom-light: #a2639e;
$custom-dark: #000000;
JSON
{
  "hex": "#781b76",
  "rgb": {
    "r": 120,
    "g": 27,
    "b": 118
  },
  "hsl": {
    "h": 301.29,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.41501,
    "c": 0.16384,
    "h": 329
  },
  "luminance": 0.06085
}

Semantic roles & 50–950 ramp

primary
#781B76
secondary
#43AC45
accent
#E64541
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #781B76

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

Preview Lab → · Contrast checker → · Palette generator →

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