#781F9E#781F9E

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

Color values

HEX#781F9E
RGBrgb(120, 31, 158)
HSLhsl(282, 67%, 37%)
HSVhsv(282, 80%, 62%)
CMYKcmyk(24.1%, 80.4%, 0%, 38%)
CIE-LABlab(32.79, 56.27, -50.24)
CIE-LCHlch(32.79, 75.44, 318.24°)
OKLaboklab(44.6% 0.1323 -0.1422)
OKLCHoklch(44.6% 0.194 312.9)
XYZxyz(14.4062, 7.4421, 33.0187)
Luminance0.0744 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781F9E #459E1F
analogous
#381F9E #781F9E #9E1F85
triadic
#781F9E #9E781F #1F9E78
tetradic
#781F9E #9E381F #459E1F #1F859E
square
#781F9E #9E381F #459E1F #1F859E
split-complementary
#781F9E #859E1F #1F9E38
monochromatic
#2A0B38 #51156B #781F9E #9F29D1 #B659DE

Accessibility & contrast

On white

8.44
#781F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#781F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781F9E
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781F9E#FFFFFF#000000##FFFFFF
##781F9E1.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A1
Deuteranopia (green-blind)
#094F9B
Tritanopia (blue-blind)
#743E5F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #781f9e;
/* rgb */ color: rgb(120, 31, 158);
/* oklch */ color: oklch(44.6% 0.194 312.9);
Tailwind
colors: {
  custom: {
    50: '#a466bb',
    500: '#781f9e',
    950: '#000000',
  },
}
SCSS
$custom: #781f9e;
$custom-light: #a466bb;
$custom-dark: #000000;
JSON
{
  "hex": "#781f9e",
  "rgb": {
    "r": 120,
    "g": 31,
    "b": 158
  },
  "hsl": {
    "h": 282.047,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.44603,
    "c": 0.19425,
    "h": 312.9
  },
  "luminance": 0.07442
}

Semantic roles & 50–950 ramp

primary
#781F9E
secondary
#77C256
accent
#EA3E71
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #781F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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