#781B81#781B81

#781B81 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.2% C 0.173 H 324.1°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#781B81
RGBrgb(120, 27, 129)
HSLhsl(295, 65%, 31%)
HSVhsv(295, 79%, 51%)
CMYKcmyk(7%, 79.1%, 0%, 49.4%)
CIE-LABlab(30.31, 51.92, -36.36)
CIE-LCHlch(30.31, 63.38, 325.00°)
OKLaboklab(42.21% 0.14 -0.1015)
OKLCHoklch(42.21% 0.173 324.1)
XYZxyz(12.0998, 6.3627, 21.3554)
Luminance0.0636 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781B81 #24811B
analogous
#451B81 #781B81 #811B57
triadic
#781B81 #81781B #1B8178
tetradic
#781B81 #81451B #24811B #1B5781
square
#781B81 #81451B #24811B #1B5781
split-complementary
#781B81 #57811B #1B8145
monochromatic
#1A061C #49104E #781B81 #A726B4 #CA3FD7

Accessibility & contrast

On white

9.24
#781B81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#781B81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781B81
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781B81#FFFFFF#000000##FFFFFF
##781B811.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004084
Deuteranopia (green-blind)
#2F4B7F
Tritanopia (blue-blind)
#7A2F4D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #781b81;
/* rgb */ color: rgb(120, 27, 129);
/* oklch */ color: oklch(42.2% 0.173 324.1);
Tailwind
colors: {
  custom: {
    50: '#a263a6',
    500: '#781b81',
    950: '#000000',
  },
}
SCSS
$custom: #781b81;
$custom-light: #a263a6;
$custom-dark: #000000;
JSON
{
  "hex": "#781b81",
  "rgb": {
    "r": 120,
    "g": 27,
    "b": 129
  },
  "hsl": {
    "h": 294.706,
    "s": 65.385,
    "l": 30.588
  },
  "oklch": {
    "l": 0.42206,
    "c": 0.17289,
    "h": 324.1
  },
  "luminance": 0.06362
}

Semantic roles & 50–950 ramp

primary
#781B81
secondary
#4DB543
accent
#E83F4E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #781B81

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

Preview Lab → · Contrast checker → · Palette generator →

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