#781D7D#781D7D

#781D7D is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.1% C 0.167 H 325.7°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#781D7D
RGBrgb(120, 29, 125)
HSLhsl(297, 62%, 30%)
HSVhsv(297, 77%, 49%)
CMYKcmyk(4%, 76.8%, 0%, 51%)
CIE-LABlab(30.29, 50.53, -33.88)
CIE-LCHlch(30.29, 60.84, 326.16°)
OKLaboklab(42.11% 0.1384 -0.0942)
OKLCHoklch(42.11% 0.167 325.7)
XYZxyz(11.8865, 6.3533, 19.9983)
Luminance0.0635 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781D7D #227D1D
analogous
#481D7D #781D7D #7D1D52
triadic
#781D7D #7D781D #1D7D78
tetradic
#781D7D #7D481D #227D1D #1D527D
square
#781D7D #7D481D #227D1D #1D527D
split-complementary
#781D7D #527D1D #1D7D48
monochromatic
#19061A #48114B #781D7D #A829AF #CB41D3

Accessibility & contrast

On white

9.25
#781D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#781D7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781D7D
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781D7D#FFFFFF#000000##FFFFFF
##781D7D1.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004080
Deuteranopia (green-blind)
#334B7B
Tritanopia (blue-blind)
#7B2E4C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #781d7d;
/* rgb */ color: rgb(120, 29, 125);
/* oklch */ color: oklch(42.1% 0.167 325.7);
Tailwind
colors: {
  custom: {
    50: '#a264a3',
    500: '#781d7d',
    950: '#000000',
  },
}
SCSS
$custom: #781d7d;
$custom-light: #a264a3;
$custom-dark: #000000;
JSON
{
  "hex": "#781d7d",
  "rgb": {
    "r": 120,
    "g": 29,
    "b": 125
  },
  "hsl": {
    "h": 296.875,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.42109,
    "c": 0.16743,
    "h": 325.7
  },
  "luminance": 0.06352
}

Semantic roles & 50–950 ramp

primary
#781D7D
secondary
#4BB145
accent
#E5424B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #781D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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