#781B77#781B77

#781B77 is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.6% C 0.165 H 328.5°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#781B77
RGBrgb(120, 27, 119)
HSLhsl(301, 63%, 29%)
HSVhsv(301, 78%, 47%)
CMYKcmyk(0%, 77.5%, 0.8%, 52.9%)
CIE-LABlab(29.69, 50.14, -31.04)
CIE-LCHlch(29.69, 58.97, 328.23°)
OKLaboklab(41.56% 0.1404 -0.086)
OKLCHoklch(41.56% 0.165 328.5)
XYZxyz(11.4673, 6.1097, 18.0245)
Luminance0.0611 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781B77 #1B781C
analogous
#4B1B78 #781B77 #781B49
triadic
#781B77 #77781B #1B7778
tetradic
#781B77 #784B1B #1B781C #1B4978
square
#781B77 #784B1B #1B781C #1B4978
split-complementary
#781B77 #49781B #1B784B
monochromatic
#190619 #461045 #781B77 #AA26A9 #D33BD1

Accessibility & contrast

On white

9.45
#781B77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #781B77
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781B77#FFFFFF#000000##FFFFFF
##781B771.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#083E79
Deuteranopia (green-blind)
#364A75
Tritanopia (blue-blind)
#7C2A48
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #781b77;
/* rgb */ color: rgb(120, 27, 119);
/* oklch */ color: oklch(41.6% 0.165 328.5);
Tailwind
colors: {
  custom: {
    50: '#a2639e',
    500: '#781b77',
    950: '#000000',
  },
}
SCSS
$custom: #781b77;
$custom-light: #a2639e;
$custom-dark: #000000;
JSON
{
  "hex": "#781b77",
  "rgb": {
    "r": 120,
    "g": 27,
    "b": 119
  },
  "hsl": {
    "h": 300.645,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.41563,
    "c": 0.16464,
    "h": 328.5
  },
  "luminance": 0.06109
}

Semantic roles & 50–950 ramp

primary
#781B77
secondary
#43AC44
accent
#E64341
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #781B77

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

Preview Lab → · Contrast checker → · Palette generator →

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