#781B7D#781B7D

#781B7D is a dark, vivid purple. Relative luminance 0.063; OKLCH L 41.9% C 0.170 H 325.8°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#781B7D
RGBrgb(120, 27, 125)
HSLhsl(297, 64%, 30%)
HSVhsv(297, 78%, 49%)
CMYKcmyk(4%, 78.4%, 0%, 51%)
CIE-LABlab(30.06, 51.19, -34.25)
CIE-LCHlch(30.06, 61.59, 326.22°)
OKLaboklab(41.94% 0.1402 -0.0953)
OKLCHoklch(41.94% 0.17 325.8)
XYZxyz(11.8391, 6.2584, 19.9825)
Luminance0.0626 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781B7D #207D1B
analogous
#471B7D #781B7D #7D1B51
triadic
#781B7D #7D781B #1B7D78
tetradic
#781B7D #7D471B #207D1B #1B517D
square
#781B7D #7D471B #207D1B #1B517D
split-complementary
#781B7D #517D1B #1B7D47
monochromatic
#180519 #48104B #781B7D #A826AF #CD3DD5

Accessibility & contrast

On white

9.33
#781B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#781B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781B7D
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781B7D#FFFFFF#000000##FFFFFF
##781B7D1.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F80
Deuteranopia (green-blind)
#324B7B
Tritanopia (blue-blind)
#7B2D4B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #781b7d;
/* rgb */ color: rgb(120, 27, 125);
/* oklch */ color: oklch(41.9% 0.170 325.8);
Tailwind
colors: {
  custom: {
    50: '#a263a3',
    500: '#781b7d',
    950: '#000000',
  },
}
SCSS
$custom: #781b7d;
$custom-light: #a263a3;
$custom-dark: #000000;
JSON
{
  "hex": "#781b7d",
  "rgb": {
    "r": 120,
    "g": 27,
    "b": 125
  },
  "hsl": {
    "h": 296.939,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.41944,
    "c": 0.16956,
    "h": 325.8
  },
  "luminance": 0.06258
}

Semantic roles & 50–950 ramp

primary
#781B7D
secondary
#48B143
accent
#E74049
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #781B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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