#781C80#781C80

#781C80 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.2% C 0.171 H 324.5°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#781C80
RGBrgb(120, 28, 128)
HSLhsl(295, 64%, 31%)
HSVhsv(295, 78%, 50%)
CMYKcmyk(6.3%, 78.1%, 0%, 49.8%)
CIE-LABlab(30.36, 51.41, -35.65)
CIE-LCHlch(30.36, 62.56, 325.26°)
OKLaboklab(42.22% 0.1392 -0.0994)
OKLCHoklch(42.22% 0.171 324.5)
XYZxyz(12.0569, 6.3829, 21.0149)
Luminance0.0638 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781C80 #24801C
analogous
#461C80 #781C80 #801C56
triadic
#781C80 #80781C #1C8078
tetradic
#781C80 #80461C #24801C #1C5680
square
#781C80 #80461C #24801C #1C5680
split-complementary
#781C80 #56801C #1C8046
monochromatic
#1A061C #49114E #781C80 #A727B2 #CA41D5

Accessibility & contrast

On white

9.23
#781C80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #781C80
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781C80#FFFFFF#000000##FFFFFF
##781C801.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004083
Deuteranopia (green-blind)
#304B7E
Tritanopia (blue-blind)
#7A2F4D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #781c80;
/* rgb */ color: rgb(120, 28, 128);
/* oklch */ color: oklch(42.2% 0.171 324.5);
Tailwind
colors: {
  custom: {
    50: '#a264a5',
    500: '#781c80',
    950: '#000000',
  },
}
SCSS
$custom: #781c80;
$custom-light: #a264a5;
$custom-dark: #000000;
JSON
{
  "hex": "#781c80",
  "rgb": {
    "r": 120,
    "g": 28,
    "b": 128
  },
  "hsl": {
    "h": 295.2,
    "s": 64.103,
    "l": 30.588
  },
  "oklch": {
    "l": 0.4222,
    "c": 0.17101,
    "h": 324.5
  },
  "luminance": 0.06382
}

Semantic roles & 50–950 ramp

primary
#781C80
secondary
#4DB344
accent
#E7414E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #781C80

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

Preview Lab → · Contrast checker → · Palette generator →

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