#781D7B#781D7B

#781D7B is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.0% C 0.166 H 326.6°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#781D7B
RGBrgb(120, 29, 123)
HSLhsl(298, 62%, 30%)
HSVhsv(298, 76%, 48%)
CMYKcmyk(2.4%, 76.4%, 0%, 51.8%)
CIE-LABlab(30.16, 50.17, -32.82)
CIE-LCHlch(30.16, 59.95, 326.81°)
OKLaboklab(41.98% 0.1385 -0.0912)
OKLCHoklch(41.98% 0.166 326.6)
XYZxyz(11.7600, 6.3027, 19.3322)
Luminance0.0630 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781D7B #207B1D
analogous
#491D7B #781D7B #7B1D4F
triadic
#781D7B #7B781D #1D7B78
tetradic
#781D7B #7B491D #207B1D #1D4F7B
square
#781D7B #7B491D #207B1D #1D4F7B
split-complementary
#781D7B #4F7B1D #1D7B49
monochromatic
#180619 #481149 #781D7B #A829AD #CD40D2

Accessibility & contrast

On white

9.29
#781D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#781D7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781D7B
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781D7B#FFFFFF#000000##FFFFFF
##781D7B1.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03407E
Deuteranopia (green-blind)
#344B79
Tritanopia (blue-blind)
#7B2D4B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #781d7b;
/* rgb */ color: rgb(120, 29, 123);
/* oklch */ color: oklch(42.0% 0.166 326.6);
Tailwind
colors: {
  custom: {
    50: '#a264a1',
    500: '#781d7b',
    950: '#000000',
  },
}
SCSS
$custom: #781d7b;
$custom-light: #a264a1;
$custom-dark: #000000;
JSON
{
  "hex": "#781d7b",
  "rgb": {
    "r": 120,
    "g": 29,
    "b": 123
  },
  "hsl": {
    "h": 298.085,
    "s": 61.842,
    "l": 29.804
  },
  "oklch": {
    "l": 0.41981,
    "c": 0.16577,
    "h": 326.6
  },
  "luminance": 0.06302
}

Semantic roles & 50–950 ramp

primary
#781D7B
secondary
#48AF45
accent
#E54348
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #781D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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