#781B8E#781B8E

#781B8E is a dark, vivid purple. Relative luminance 0.067; OKLCH L 43.1% C 0.184 H 318.8°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#781B8E
RGBrgb(120, 27, 142)
HSLhsl(289, 68%, 33%)
HSVhsv(289, 81%, 56%)
CMYKcmyk(15.5%, 81%, 0%, 44.3%)
CIE-LABlab(31.19, 54.36, -43.04)
CIE-LCHlch(31.19, 69.34, 321.63°)
OKLaboklab(43.11% 0.1385 -0.121)
OKLCHoklch(43.11% 0.184 318.8)
XYZxyz(13.0195, 6.7306, 26.1993)
Luminance0.0673 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781B8E #318E1B
analogous
#3F1B8E #781B8E #8E1B6A
triadic
#781B8E #8E781B #1B8E78
tetradic
#781B8E #8E3F1B #318E1B #1B6A8E
square
#781B8E #8E3F1B #318E1B #1B6A8E
split-complementary
#781B8E #6A8E1B #1B8E3F
monochromatic
#210727 #4D115B #781B8E #A325C1 #C047DC

Accessibility & contrast

On white

8.95
#781B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#781B8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781B8E
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781B8E#FFFFFF#000000##FFFFFF
##781B8E1.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004391
Deuteranopia (green-blind)
#234C8C
Tritanopia (blue-blind)
#783555
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #781b8e;
/* rgb */ color: rgb(120, 27, 142);
/* oklch */ color: oklch(43.1% 0.184 318.8);
Tailwind
colors: {
  custom: {
    50: '#a364b0',
    500: '#781b8e',
    950: '#000000',
  },
}
SCSS
$custom: #781b8e;
$custom-light: #a364b0;
$custom-dark: #000000;
JSON
{
  "hex": "#781b8e",
  "rgb": {
    "r": 120,
    "g": 27,
    "b": 142
  },
  "hsl": {
    "h": 288.522,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.43105,
    "c": 0.18392,
    "h": 318.8
  },
  "luminance": 0.0673
}

Semantic roles & 50–950 ramp

primary
#781B8E
secondary
#5EBE47
accent
#EB3D5E
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #781B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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