#781F9F#781F9F

#781F9F is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.7% C 0.195 H 312.6°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#781F9F
RGBrgb(120, 31, 159)
HSLhsl(282, 67%, 37%)
HSVhsv(282, 81%, 62%)
CMYKcmyk(24.5%, 80.5%, 0%, 37.6%)
CIE-LABlab(32.87, 56.48, -50.73)
CIE-LCHlch(32.87, 75.92, 318.07°)
OKLaboklab(44.68% 0.1321 -0.1436)
OKLCHoklch(44.68% 0.195 312.6)
XYZxyz(14.4926, 7.4767, 33.4739)
Luminance0.0748 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781F9F #469F1F
analogous
#381F9F #781F9F #9F1F86
triadic
#781F9F #9F781F #1F9F78
tetradic
#781F9F #9F381F #469F1F #1F869F
square
#781F9F #9F381F #469F1F #1F869F
split-complementary
#781F9F #869F1F #1F9F38
monochromatic
#2B0B39 #51156C #781F9F #9F29D2 #B65ADF

Accessibility & contrast

On white

8.42
#781F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#781F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781F9F
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781F9F#FFFFFF#000000##FFFFFF
##781F9F1.008.422.508.42
#FFFFFF8.421.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A2
Deuteranopia (green-blind)
#064F9C
Tritanopia (blue-blind)
#733F60
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #781f9f;
/* rgb */ color: rgb(120, 31, 159);
/* oklch */ color: oklch(44.7% 0.195 312.6);
Tailwind
colors: {
  custom: {
    50: '#a466bc',
    500: '#781f9f',
    950: '#000000',
  },
}
SCSS
$custom: #781f9f;
$custom-light: #a466bc;
$custom-dark: #000000;
JSON
{
  "hex": "#781f9f",
  "rgb": {
    "r": 120,
    "g": 31,
    "b": 159
  },
  "hsl": {
    "h": 281.719,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.44679,
    "c": 0.19515,
    "h": 312.6
  },
  "luminance": 0.07476
}

Semantic roles & 50–950 ramp

primary
#781F9F
secondary
#78C357
accent
#EA3E72
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #781F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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