#781C81#781C81

#781C81 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.3% C 0.172 H 324.0°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#781C81
RGBrgb(120, 28, 129)
HSLhsl(295, 64%, 31%)
HSVhsv(295, 78%, 51%)
CMYKcmyk(7%, 78.3%, 0%, 49.4%)
CIE-LABlab(30.42, 51.59, -36.18)
CIE-LCHlch(30.42, 63.01, 324.96°)
OKLaboklab(42.29% 0.1391 -0.1009)
OKLCHoklch(42.29% 0.172 324)
XYZxyz(12.1231, 6.4093, 21.3632)
Luminance0.0641 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781C81 #25811C
analogous
#451C81 #781C81 #811C57
triadic
#781C81 #81781C #1C8178
tetradic
#781C81 #81451C #25811C #1C5781
square
#781C81 #81451C #25811C #1C5781
split-complementary
#781C81 #57811C #1C8145
monochromatic
#1A061C #49114F #781C81 #A727B3 #C942D6

Accessibility & contrast

On white

9.20
#781C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#781C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781C81
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781C81#FFFFFF#000000##FFFFFF
##781C811.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004184
Deuteranopia (green-blind)
#2F4B7F
Tritanopia (blue-blind)
#7A2F4E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #781c81;
/* rgb */ color: rgb(120, 28, 129);
/* oklch */ color: oklch(42.3% 0.172 324.0);
Tailwind
colors: {
  custom: {
    50: '#a264a6',
    500: '#781c81',
    950: '#000000',
  },
}
SCSS
$custom: #781c81;
$custom-light: #a264a6;
$custom-dark: #000000;
JSON
{
  "hex": "#781c81",
  "rgb": {
    "r": 120,
    "g": 28,
    "b": 129
  },
  "hsl": {
    "h": 294.653,
    "s": 64.331,
    "l": 30.784
  },
  "oklch": {
    "l": 0.42286,
    "c": 0.17186,
    "h": 324
  },
  "luminance": 0.06409
}

Semantic roles & 50–950 ramp

primary
#781C81
secondary
#4EB444
accent
#E7404F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #781C81

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

Preview Lab → · Contrast checker → · Palette generator →

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