#781C7E#781C7E

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

Color values

HEX#781C7E
RGBrgb(120, 28, 126)
HSLhsl(296, 64%, 30%)
HSVhsv(296, 78%, 49%)
CMYKcmyk(4.8%, 77.8%, 0%, 50.6%)
CIE-LABlab(30.23, 51.04, -34.60)
CIE-LCHlch(30.23, 61.67, 325.87°)
OKLaboklab(42.09% 0.1393 -0.0963)
OKLCHoklch(42.09% 0.169 325.3)
XYZxyz(11.9266, 6.3307, 20.3284)
Luminance0.0633 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781C7E #227E1C
analogous
#471C7E #781C7E #7E1C53
triadic
#781C7E #7E781C #1C7E78
tetradic
#781C7E #7E471C #227E1C #1C537E
square
#781C7E #7E471C #227E1C #1C537E
split-complementary
#781C7E #537E1C #1C7E47
monochromatic
#19061A #48114C #781C7E #A827B0 #CB40D5

Accessibility & contrast

On white

9.27
#781C7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #781C7E
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781C7E#FFFFFF#000000##FFFFFF
##781C7E1.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004081
Deuteranopia (green-blind)
#324B7C
Tritanopia (blue-blind)
#7B2E4C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #781c7e;
/* rgb */ color: rgb(120, 28, 126);
/* oklch */ color: oklch(42.1% 0.169 325.3);
Tailwind
colors: {
  custom: {
    50: '#a264a4',
    500: '#781c7e',
    950: '#000000',
  },
}
SCSS
$custom: #781c7e;
$custom-light: #a264a4;
$custom-dark: #000000;
JSON
{
  "hex": "#781c7e",
  "rgb": {
    "r": 120,
    "g": 28,
    "b": 126
  },
  "hsl": {
    "h": 296.327,
    "s": 63.636,
    "l": 30.196
  },
  "oklch": {
    "l": 0.4209,
    "c": 0.16934,
    "h": 325.3
  },
  "luminance": 0.0633
}

Semantic roles & 50–950 ramp

primary
#781C7E
secondary
#4BB244
accent
#E7414B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #781C7E

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

Preview Lab → · Contrast checker → · Palette generator →

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