#781B87#781B87

#781B87 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.6% C 0.178 H 321.6°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#781B87
RGBrgb(120, 27, 135)
HSLhsl(292, 67%, 32%)
HSVhsv(292, 80%, 53%)
CMYKcmyk(11.1%, 80%, 0%, 47.1%)
CIE-LABlab(30.70, 53.03, -39.47)
CIE-LCHlch(30.70, 66.11, 323.34°)
OKLaboklab(42.61% 0.1394 -0.1106)
OKLCHoklch(42.61% 0.178 321.6)
XYZxyz(12.5104, 6.5269, 23.5178)
Luminance0.0653 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781B87 #2A871B
analogous
#421B87 #781B87 #871B60
triadic
#781B87 #87781B #1B8778
tetradic
#781B87 #87421B #2A871B #1B6087
square
#781B87 #87421B #2A871B #1B6087
split-complementary
#781B87 #60871B #1B8742
monochromatic
#1D0721 #4B1154 #781B87 #A525BA #C543D9

Accessibility & contrast

On white

9.11
#781B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#781B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781B87
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781B87#FFFFFF#000000##FFFFFF
##781B871.009.112.319.11
#FFFFFF9.111.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428A
Deuteranopia (green-blind)
#2A4C85
Tritanopia (blue-blind)
#793151
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #781b87;
/* rgb */ color: rgb(120, 27, 135);
/* oklch */ color: oklch(42.6% 0.178 321.6);
Tailwind
colors: {
  custom: {
    50: '#a364aa',
    500: '#781b87',
    950: '#000000',
  },
}
SCSS
$custom: #781b87;
$custom-light: #a364aa;
$custom-dark: #000000;
JSON
{
  "hex": "#781b87",
  "rgb": {
    "r": 120,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 291.667,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.42612,
    "c": 0.17794,
    "h": 321.6
  },
  "luminance": 0.06526
}

Semantic roles & 50–950 ramp

primary
#781B87
secondary
#54BA44
accent
#EA3E56
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #781B87

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

Preview Lab → · Contrast checker → · Palette generator →

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