#781B88#781B88

#781B88 is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.7% C 0.179 H 321.2°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#781B88
RGBrgb(120, 27, 136)
HSLhsl(291, 67%, 32%)
HSVhsv(291, 80%, 53%)
CMYKcmyk(11.8%, 80.1%, 0%, 46.7%)
CIE-LABlab(30.77, 53.21, -39.99)
CIE-LCHlch(30.77, 66.56, 323.08°)
OKLaboklab(42.68% 0.1393 -0.1121)
OKLCHoklch(42.68% 0.179 321.2)
XYZxyz(12.5811, 6.5552, 23.8904)
Luminance0.0655 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781B88 #2B881B
analogous
#421B88 #781B88 #881B62
triadic
#781B88 #88781B #1B8878
tetradic
#781B88 #88421B #2B881B #1B6288
square
#781B88 #88421B #2B881B #1B6288
split-complementary
#781B88 #62881B #1B8842
monochromatic
#1E0722 #4B1155 #781B88 #A525BB #C444DA

Accessibility & contrast

On white

9.09
#781B88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #781B88
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781B88#FFFFFF#000000##FFFFFF
##781B881.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428B
Deuteranopia (green-blind)
#294C86
Tritanopia (blue-blind)
#793251
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #781b88;
/* rgb */ color: rgb(120, 27, 136);
/* oklch */ color: oklch(42.7% 0.179 321.2);
Tailwind
colors: {
  custom: {
    50: '#a364ab',
    500: '#781b88',
    950: '#000000',
  },
}
SCSS
$custom: #781b88;
$custom-light: #a364ab;
$custom-dark: #000000;
JSON
{
  "hex": "#781b88",
  "rgb": {
    "r": 120,
    "g": 27,
    "b": 136
  },
  "hsl": {
    "h": 291.193,
    "s": 66.871,
    "l": 31.961
  },
  "oklch": {
    "l": 0.42682,
    "c": 0.17878,
    "h": 321.2
  },
  "luminance": 0.06555
}

Semantic roles & 50–950 ramp

primary
#781B88
secondary
#55BB44
accent
#EA3E57
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #781B88

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

Preview Lab → · Contrast checker → · Palette generator →

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