#781F9D#781F9D

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

Color values

HEX#781F9D
RGBrgb(120, 31, 157)
HSLhsl(282, 67%, 37%)
HSVhsv(282, 80%, 62%)
CMYKcmyk(23.6%, 80.3%, 0%, 38.4%)
CIE-LABlab(32.72, 56.07, -49.76)
CIE-LCHlch(32.72, 74.96, 318.41°)
OKLaboklab(44.53% 0.1325 -0.1408)
OKLCHoklch(44.53% 0.193 313.3)
XYZxyz(14.3204, 7.4078, 32.5672)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781F9D #449D1F
analogous
#391F9D #781F9D #9D1F83
triadic
#781F9D #9D781F #1F9D78
tetradic
#781F9D #9D391F #449D1F #1F839D
square
#781F9D #9D391F #449D1F #1F839D
split-complementary
#781F9D #839D1F #1F9D39
monochromatic
#2A0B37 #51156A #781F9D #9F29D0 #B758DE

Accessibility & contrast

On white

8.46
#781F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#781F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781F9D
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781F9D#FFFFFF#000000##FFFFFF
##781F9D1.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A0
Deuteranopia (green-blind)
#0D4F9A
Tritanopia (blue-blind)
#743E5E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #781f9d;
/* rgb */ color: rgb(120, 31, 157);
/* oklch */ color: oklch(44.5% 0.193 313.3);
Tailwind
colors: {
  custom: {
    50: '#a366bb',
    500: '#781f9d',
    950: '#000000',
  },
}
SCSS
$custom: #781f9d;
$custom-light: #a366bb;
$custom-dark: #000000;
JSON
{
  "hex": "#781f9d",
  "rgb": {
    "r": 120,
    "g": 31,
    "b": 157
  },
  "hsl": {
    "h": 282.381,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.44527,
    "c": 0.19334,
    "h": 313.3
  },
  "luminance": 0.07407
}

Semantic roles & 50–950 ramp

primary
#781F9D
secondary
#76C256
accent
#EA3E70
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #781F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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