#781B9E#781B9E

#781B9E is a dark, vivid purple. Relative luminance 0.072; OKLCH L 44.3% C 0.198 H 313.2°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#781B9E
RGBrgb(120, 27, 158)
HSLhsl(283, 71%, 36%)
HSVhsv(283, 83%, 62%)
CMYKcmyk(24.1%, 82.9%, 0%, 38%)
CIE-LABlab(32.36, 57.53, -50.94)
CIE-LCHlch(32.36, 76.84, 318.48°)
OKLaboklab(44.3% 0.1354 -0.1442)
OKLCHoklch(44.3% 0.198 313.2)
XYZxyz(14.3081, 7.2460, 32.9860)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781B9E #419E1B
analogous
#361B9E #781B9E #9E1B83
triadic
#781B9E #9E781B #1B9E78
tetradic
#781B9E #9E361B #419E1B #1B839E
square
#781B9E #9E361B #419E1B #1B839E
split-complementary
#781B9E #839E1B #1B9E36
monochromatic
#290935 #50126A #781B9E #A024D2 #B852E1

Accessibility & contrast

On white

8.57
#781B9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#781B9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781B9E
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781B9E#FFFFFF#000000##FFFFFF
##781B9E1.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A1
Deuteranopia (green-blind)
#024E9B
Tritanopia (blue-blind)
#743D5E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #781b9e;
/* rgb */ color: rgb(120, 27, 158);
/* oklch */ color: oklch(44.3% 0.198 313.2);
Tailwind
colors: {
  custom: {
    50: '#a465bb',
    500: '#781b9e',
    950: '#000000',
  },
}
SCSS
$custom: #781b9e;
$custom-light: #a465bb;
$custom-dark: #000000;
JSON
{
  "hex": "#781b9e",
  "rgb": {
    "r": 120,
    "g": 27,
    "b": 158
  },
  "hsl": {
    "h": 282.595,
    "s": 70.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.443,
    "c": 0.19783,
    "h": 313.2
  },
  "luminance": 0.07246
}

Semantic roles & 50–950 ramp

primary
#781B9E
secondary
#72C451
accent
#EE3A6E
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #781B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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