#781F8D#781F8D

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

Color values

HEX#781F8D
RGBrgb(120, 31, 141)
HSLhsl(289, 64%, 34%)
HSVhsv(289, 78%, 55%)
CMYKcmyk(14.9%, 78%, 0%, 44.7%)
CIE-LABlab(31.57, 52.85, -41.80)
CIE-LCHlch(31.57, 67.39, 321.66°)
OKLaboklab(43.36% 0.1352 -0.1174)
OKLCHoklch(43.36% 0.179 319)
XYZxyz(13.0428, 6.8968, 25.8383)
Luminance0.0690 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781F8D #348D1F
analogous
#411F8D #781F8D #8D1F6B
triadic
#781F8D #8D781F #1F8D78
tetradic
#781F8D #8D411F #348D1F #1F6B8D
square
#781F8D #8D411F #348D1F #1F6B8D
split-complementary
#781F8D #6B8D1F #1F8D41
monochromatic
#230929 #4D145B #781F8D #A32ABF #BE4ED8

Accessibility & contrast

On white

8.83
#781F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #781F8D
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781F8D#FFFFFF#000000##FFFFFF
##781F8D1.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004590
Deuteranopia (green-blind)
#274D8B
Tritanopia (blue-blind)
#783655
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #781f8d;
/* rgb */ color: rgb(120, 31, 141);
/* oklch */ color: oklch(43.4% 0.179 319.0);
Tailwind
colors: {
  custom: {
    50: '#a365af',
    500: '#781f8d',
    950: '#000000',
  },
}
SCSS
$custom: #781f8d;
$custom-light: #a365af;
$custom-dark: #000000;
JSON
{
  "hex": "#781f8d",
  "rgb": {
    "r": 120,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 288.545,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.43355,
    "c": 0.17907,
    "h": 319
  },
  "luminance": 0.06896
}

Semantic roles & 50–950 ramp

primary
#781F8D
secondary
#62BB4D
accent
#E74161
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #781F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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