#781F5D#781F5D

#781F5D is a dark, vivid pink. Relative luminance 0.058; OKLCH L 40.5% C 0.140 H 342.6°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#781F5D
RGBrgb(120, 31, 93)
HSLhsl(318, 59%, 30%)
HSVhsv(318, 74%, 47%)
CMYKcmyk(0%, 74.2%, 22.5%, 52.9%)
CIE-LABlab(28.81, 44.55, -15.69)
CIE-LCHlch(28.81, 47.23, 340.60°)
OKLaboklab(40.48% 0.1338 -0.042)
OKLCHoklch(40.48% 0.14 342.6)
XYZxyz(10.2118, 5.7644, 10.9286)
Luminance0.0576 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781F5D #1F783A
analogous
#661F78 #781F5D #781F31
triadic
#781F5D #5D781F #1F5D78
tetradic
#781F5D #78661F #1F783A #1F3178
square
#781F5D #78661F #1F783A #1F3178
split-complementary
#781F5D #31781F #1F7866
monochromatic
#180613 #471237 #781F5D #A92C83 #CE43A4

Accessibility & contrast

On white

9.76
#781F5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#781F5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781F5D
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781F5D#FFFFFF#000000##FFFFFF
##781F5D1.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#273B5F
Deuteranopia (green-blind)
#43495B
Tritanopia (blue-blind)
#80203B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #781f5d;
/* rgb */ color: rgb(120, 31, 93);
/* oklch */ color: oklch(40.5% 0.140 342.6);
Tailwind
colors: {
  custom: {
    50: '#a2638b',
    500: '#781f5d',
    950: '#000000',
  },
}
SCSS
$custom: #781f5d;
$custom-light: #a2638b;
$custom-dark: #000000;
JSON
{
  "hex": "#781f5d",
  "rgb": {
    "r": 120,
    "g": 31,
    "b": 93
  },
  "hsl": {
    "h": 318.202,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.40484,
    "c": 0.14027,
    "h": 342.6
  },
  "luminance": 0.05763
}

Semantic roles & 50–950 ramp

primary
#781F5D
secondary
#47AB66
accent
#E27546
background
#FAF6F8
surface
#F4EBF0
border
#CEC6CB
text
#0F060C
muted
#7F7A7D

Preview Lab

Preview with #781F5D

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

Preview Lab → · Contrast checker → · Palette generator →

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