#781B7A#781B7A

#781B7A is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.8% C 0.167 H 327.1°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#781B7A
RGBrgb(120, 27, 122)
HSLhsl(299, 64%, 29%)
HSVhsv(299, 78%, 48%)
CMYKcmyk(1.6%, 77.9%, 0%, 52.2%)
CIE-LABlab(29.87, 50.66, -32.65)
CIE-LCHlch(29.87, 60.27, 327.19°)
OKLaboklab(41.75% 0.1404 -0.0907)
OKLCHoklch(41.75% 0.167 327.1)
XYZxyz(11.6503, 6.1829, 18.9884)
Luminance0.0618 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781B7A #1D7A1B
analogous
#491B7A #781B7A #7A1B4D
triadic
#781B7A #7A781B #1B7A78
tetradic
#781B7A #7A491B #1D7A1B #1B4D7A
square
#781B7A #7A491B #1D7A1B #1B4D7A
split-complementary
#781B7A #4D7A1B #1B7A49
monochromatic
#190619 #471048 #781B7A #A926AC #D13CD4

Accessibility & contrast

On white

9.39
#781B7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#781B7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781B7A
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781B7A#FFFFFF#000000##FFFFFF
##781B7A1.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013F7D
Deuteranopia (green-blind)
#344A78
Tritanopia (blue-blind)
#7C2B4A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #781b7a;
/* rgb */ color: rgb(120, 27, 122);
/* oklch */ color: oklch(41.8% 0.167 327.1);
Tailwind
colors: {
  custom: {
    50: '#a263a1',
    500: '#781b7a',
    950: '#000000',
  },
}
SCSS
$custom: #781b7a;
$custom-light: #a263a1;
$custom-dark: #000000;
JSON
{
  "hex": "#781b7a",
  "rgb": {
    "r": 120,
    "g": 27,
    "b": 122
  },
  "hsl": {
    "h": 298.737,
    "s": 63.758,
    "l": 29.216
  },
  "oklch": {
    "l": 0.41752,
    "c": 0.16709,
    "h": 327.1
  },
  "luminance": 0.06182
}

Semantic roles & 50–950 ramp

primary
#781B7A
secondary
#45AE43
accent
#E74145
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060F
muted
#7F7A7E

Preview Lab

Preview with #781B7A

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

Preview Lab → · Contrast checker → · Palette generator →

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