#781F8B#781F8B

#781F8B is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.2% C 0.177 H 319.8°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#781F8B
RGBrgb(120, 31, 139)
HSLhsl(289, 64%, 33%)
HSVhsv(289, 78%, 55%)
CMYKcmyk(13.7%, 77.7%, 0%, 45.5%)
CIE-LABlab(31.43, 52.46, -40.78)
CIE-LCHlch(31.43, 66.45, 322.14°)
OKLaboklab(43.22% 0.1354 -0.1144)
OKLCHoklch(43.22% 0.177 319.8)
XYZxyz(12.8953, 6.8378, 25.0617)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781F8B #328B1F
analogous
#421F8B #781F8B #8B1F68
triadic
#781F8B #8B781F #1F8B78
tetradic
#781F8B #8B421F #328B1F #1F688B
square
#781F8B #8B421F #328B1F #1F688B
split-complementary
#781F8B #688B1F #1F8B42
monochromatic
#220927 #4D1459 #781F8B #A32ABD #BF4DD7

Accessibility & contrast

On white

8.87
#781F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#781F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781F8B
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781F8B#FFFFFF#000000##FFFFFF
##781F8B1.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448E
Deuteranopia (green-blind)
#294D89
Tritanopia (blue-blind)
#783554
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #781f8b;
/* rgb */ color: rgb(120, 31, 139);
/* oklch */ color: oklch(43.2% 0.177 319.8);
Tailwind
colors: {
  custom: {
    50: '#a365ad',
    500: '#781f8b',
    950: '#000000',
  },
}
SCSS
$custom: #781f8b;
$custom-light: #a365ad;
$custom-dark: #000000;
JSON
{
  "hex": "#781f8b",
  "rgb": {
    "r": 120,
    "g": 31,
    "b": 139
  },
  "hsl": {
    "h": 289.444,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.43215,
    "c": 0.17731,
    "h": 319.8
  },
  "luminance": 0.06837
}

Semantic roles & 50–950 ramp

primary
#781F8B
secondary
#5FBA4C
accent
#E7415E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #781F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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