#781E8F#781E8F

#781E8F is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.4% C 0.182 H 318.3°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#781E8F
RGBrgb(120, 30, 143)
HSLhsl(288, 65%, 34%)
HSVhsv(288, 79%, 56%)
CMYKcmyk(16.1%, 79%, 0%, 43.9%)
CIE-LABlab(31.59, 53.58, -43.01)
CIE-LCHlch(31.59, 68.71, 321.25°)
OKLaboklab(43.41% 0.1358 -0.1209)
OKLCHoklch(43.41% 0.182 318.3)
XYZxyz(13.1672, 6.9054, 26.6206)
Luminance0.0691 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781E8F #358F1E
analogous
#401E8F #781E8F #8F1E6E
triadic
#781E8F #8F781E #1E8F78
tetradic
#781E8F #8F401E #358F1E #1E6E8F
square
#781E8F #8F401E #358F1E #1E6E8F
split-complementary
#781E8F #6E8F1E #1E8F40
monochromatic
#23092A #4E135C #781E8F #A229C2 #BD4EDA

Accessibility & contrast

On white

8.82
#781E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#781E8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781E8F
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781E8F#FFFFFF#000000##FFFFFF
##781E8F1.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004592
Deuteranopia (green-blind)
#244D8D
Tritanopia (blue-blind)
#773756
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #781e8f;
/* rgb */ color: rgb(120, 30, 143);
/* oklch */ color: oklch(43.4% 0.182 318.3);
Tailwind
colors: {
  custom: {
    50: '#a365b0',
    500: '#781e8f',
    950: '#000000',
  },
}
SCSS
$custom: #781e8f;
$custom-light: #a365b0;
$custom-dark: #000000;
JSON
{
  "hex": "#781e8f",
  "rgb": {
    "r": 120,
    "g": 30,
    "b": 143
  },
  "hsl": {
    "h": 287.788,
    "s": 65.318,
    "l": 33.922
  },
  "oklch": {
    "l": 0.43413,
    "c": 0.18186,
    "h": 318.3
  },
  "luminance": 0.06905
}

Semantic roles & 50–950 ramp

primary
#781E8F
secondary
#63BC4C
accent
#E84062
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100611
muted
#7F7A80

Preview Lab

Preview with #781E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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