#781E9D#781E9D

#781E9D is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.4% C 0.194 H 313.3°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#781E9D
RGBrgb(120, 30, 157)
HSLhsl(283, 68%, 37%)
HSVhsv(283, 81%, 62%)
CMYKcmyk(23.6%, 80.9%, 0%, 38.4%)
CIE-LABlab(32.60, 56.39, -49.94)
CIE-LCHlch(32.60, 75.33, 318.47°)
OKLaboklab(44.45% 0.1333 -0.1413)
OKLCHoklch(44.45% 0.194 313.3)
XYZxyz(14.2947, 7.3564, 32.5587)
Luminance0.0736 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781E9D #439D1E
analogous
#391E9D #781E9D #9D1E83
triadic
#781E9D #9D781E #1E9D78
tetradic
#781E9D #9D391E #439D1E #1E839D
square
#781E9D #9D391E #439D1E #1E839D
split-complementary
#781E9D #839D1E #1E9D39
monochromatic
#290A36 #51146A #781E9D #9F28D0 #B757DF

Accessibility & contrast

On white

8.50
#781E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#781E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781E9D
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781E9D#FFFFFF#000000##FFFFFF
##781E9D1.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A0
Deuteranopia (green-blind)
#0B4F9A
Tritanopia (blue-blind)
#743D5E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #781e9d;
/* rgb */ color: rgb(120, 30, 157);
/* oklch */ color: oklch(44.4% 0.194 313.3);
Tailwind
colors: {
  custom: {
    50: '#a366bb',
    500: '#781e9d',
    950: '#000000',
  },
}
SCSS
$custom: #781e9d;
$custom-light: #a366bb;
$custom-dark: #000000;
JSON
{
  "hex": "#781e9d",
  "rgb": {
    "r": 120,
    "g": 30,
    "b": 157
  },
  "hsl": {
    "h": 282.52,
    "s": 67.914,
    "l": 36.667
  },
  "oklch": {
    "l": 0.44447,
    "c": 0.19429,
    "h": 313.3
  },
  "luminance": 0.07356
}

Semantic roles & 50–950 ramp

primary
#781E9D
secondary
#74C254
accent
#EB3D70
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #781E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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