#781A9D#781A9D

#781A9D is a dark, vivid purple. Relative luminance 0.072; OKLCH L 44.2% C 0.198 H 313.6°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#781A9D
RGBrgb(120, 26, 157)
HSLhsl(283, 72%, 36%)
HSVhsv(283, 83%, 62%)
CMYKcmyk(23.6%, 83.4%, 0%, 38.4%)
CIE-LABlab(32.18, 57.62, -50.62)
CIE-LCHlch(32.18, 76.70, 318.70°)
OKLaboklab(44.15% 0.1363 -0.1433)
OKLCHoklch(44.15% 0.198 313.6)
XYZxyz(14.1999, 7.1667, 32.5271)
Luminance0.0717 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781A9D #3F9D1A
analogous
#361A9D #781A9D #9D1A80
triadic
#781A9D #9D781A #1A9D78
tetradic
#781A9D #9D361A #3F9D1A #1A809D
square
#781A9D #9D361A #3F9D1A #1A809D
split-complementary
#781A9D #809D1A #1A9D36
monochromatic
#280934 #501168 #781A9D #A023D2 #B94FE2

Accessibility & contrast

On white

8.63
#781A9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#781A9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781A9D
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781A9D#FFFFFF#000000##FFFFFF
##781A9D1.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A0
Deuteranopia (green-blind)
#034E9A
Tritanopia (blue-blind)
#743C5D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #781a9d;
/* rgb */ color: rgb(120, 26, 157);
/* oklch */ color: oklch(44.2% 0.198 313.6);
Tailwind
colors: {
  custom: {
    50: '#a464bb',
    500: '#781a9d',
    950: '#000000',
  },
}
SCSS
$custom: #781a9d;
$custom-light: #a464bb;
$custom-dark: #000000;
JSON
{
  "hex": "#781a9d",
  "rgb": {
    "r": 120,
    "g": 26,
    "b": 157
  },
  "hsl": {
    "h": 283.053,
    "s": 71.585,
    "l": 35.882
  },
  "oklch": {
    "l": 0.44152,
    "c": 0.19779,
    "h": 313.6
  },
  "luminance": 0.07166
}

Semantic roles & 50–950 ramp

primary
#781A9D
secondary
#70C44E
accent
#EE396D
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #781A9D

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

Preview Lab → · Contrast checker → · Palette generator →

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