#781B8D#781B8D

#781B8D is a dark, vivid purple. Relative luminance 0.067; OKLCH L 43.0% C 0.183 H 319.2°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#781B8D
RGBrgb(120, 27, 141)
HSLhsl(289, 68%, 33%)
HSVhsv(289, 81%, 55%)
CMYKcmyk(14.9%, 80.9%, 0%, 44.7%)
CIE-LABlab(31.12, 54.16, -42.54)
CIE-LCHlch(31.12, 68.87, 321.86°)
OKLaboklab(43.03% 0.1386 -0.1195)
OKLCHoklch(43.03% 0.183 319.2)
XYZxyz(12.9447, 6.7007, 25.8056)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781B8D #308D1B
analogous
#3F1B8D #781B8D #8D1B69
triadic
#781B8D #8D781B #1B8D78
tetradic
#781B8D #8D3F1B #308D1B #1B698D
square
#781B8D #8D3F1B #308D1B #1B698D
split-complementary
#781B8D #698D1B #1B8D3F
monochromatic
#210726 #4C115A #781B8D #A425C0 #C047DC

Accessibility & contrast

On white

8.97
#781B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#781B8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781B8D
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781B8D#FFFFFF#000000##FFFFFF
##781B8D1.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004390
Deuteranopia (green-blind)
#244C8B
Tritanopia (blue-blind)
#783454
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #781b8d;
/* rgb */ color: rgb(120, 27, 141);
/* oklch */ color: oklch(43.0% 0.183 319.2);
Tailwind
colors: {
  custom: {
    50: '#a364af',
    500: '#781b8d',
    950: '#000000',
  },
}
SCSS
$custom: #781b8d;
$custom-light: #a364af;
$custom-dark: #000000;
JSON
{
  "hex": "#781b8d",
  "rgb": {
    "r": 120,
    "g": 27,
    "b": 141
  },
  "hsl": {
    "h": 288.947,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.43033,
    "c": 0.18306,
    "h": 319.2
  },
  "luminance": 0.067
}

Semantic roles & 50–950 ramp

primary
#781B8D
secondary
#5CBD46
accent
#EB3D5D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #781B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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