#781C7D#781C7D

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

Color values

HEX#781C7D
RGBrgb(120, 28, 125)
HSLhsl(297, 63%, 30%)
HSVhsv(297, 78%, 49%)
CMYKcmyk(4%, 77.6%, 0%, 51%)
CIE-LABlab(30.17, 50.86, -34.07)
CIE-LCHlch(30.17, 61.22, 326.19°)
OKLaboklab(42.03% 0.1393 -0.0948)
OKLCHoklch(42.03% 0.169 325.8)
XYZxyz(11.8624, 6.3050, 19.9903)
Luminance0.0630 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781C7D #217D1C
analogous
#471C7D #781C7D #7D1C52
triadic
#781C7D #7D781C #1C7D78
tetradic
#781C7D #7D471C #217D1C #1C527D
square
#781C7D #7D471C #217D1C #1C527D
split-complementary
#781C7D #527D1C #1C7D47
monochromatic
#180619 #48114B #781C7D #A827AF #CC3FD4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##781C7D#FFFFFF#000000##FFFFFF
##781C7D1.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)
#004080
Deuteranopia (green-blind)
#324B7B
Tritanopia (blue-blind)
#7B2D4B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #781c7d;
/* rgb */ color: rgb(120, 28, 125);
/* oklch */ color: oklch(42.0% 0.169 325.8);
Tailwind
colors: {
  custom: {
    50: '#a263a3',
    500: '#781c7d',
    950: '#000000',
  },
}
SCSS
$custom: #781c7d;
$custom-light: #a263a3;
$custom-dark: #000000;
JSON
{
  "hex": "#781c7d",
  "rgb": {
    "r": 120,
    "g": 28,
    "b": 125
  },
  "hsl": {
    "h": 296.907,
    "s": 63.399,
    "l": 30
  },
  "oklch": {
    "l": 0.42025,
    "c": 0.16851,
    "h": 325.8
  },
  "luminance": 0.06304
}

Semantic roles & 50–950 ramp

primary
#781C7D
secondary
#4AB144
accent
#E6414A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #781C7D

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

Preview Lab → · Contrast checker → · Palette generator →

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