#781B79#781B79

#781B79 is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.7% C 0.166 H 327.6°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#781B79
RGBrgb(120, 27, 121)
HSLhsl(299, 64%, 29%)
HSVhsv(299, 78%, 47%)
CMYKcmyk(0.8%, 77.7%, 0%, 52.5%)
CIE-LABlab(29.81, 50.48, -32.12)
CIE-LCHlch(29.81, 59.84, 327.53°)
OKLaboklab(41.69% 0.1404 -0.0891)
OKLCHoklch(41.69% 0.166 327.6)
XYZxyz(11.5887, 6.1583, 18.6637)
Luminance0.0616 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781B79 #1C791B
analogous
#491B79 #781B79 #791B4B
triadic
#781B79 #79781B #1B7978
tetradic
#781B79 #79491B #1C791B #1B4B79
square
#781B79 #79491B #1C791B #1B4B79
split-complementary
#781B79 #4B791B #1B7949
monochromatic
#190619 #461047 #781B79 #AA26AB #D23BD3

Accessibility & contrast

On white

9.41
#781B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #781B79
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781B79#FFFFFF#000000##FFFFFF
##781B791.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#033F7C
Deuteranopia (green-blind)
#344A77
Tritanopia (blue-blind)
#7C2B49
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #781b79;
/* rgb */ color: rgb(120, 27, 121);
/* oklch */ color: oklch(41.7% 0.166 327.6);
Tailwind
colors: {
  custom: {
    50: '#a263a0',
    500: '#781b79',
    950: '#000000',
  },
}
SCSS
$custom: #781b79;
$custom-light: #a263a0;
$custom-dark: #000000;
JSON
{
  "hex": "#781b79",
  "rgb": {
    "r": 120,
    "g": 27,
    "b": 121
  },
  "hsl": {
    "h": 299.362,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.41688,
    "c": 0.16627,
    "h": 327.6
  },
  "luminance": 0.06157
}

Semantic roles & 50–950 ramp

primary
#781B79
secondary
#44AD43
accent
#E74143
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060F
muted
#7F7A7E

Preview Lab

Preview with #781B79

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

Preview Lab → · Contrast checker → · Palette generator →

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