#781F97#781F97

#781F97 is a dark, vivid purple. Relative luminance 0.072; OKLCH L 44.1% C 0.188 H 315.3°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#781F97
RGBrgb(120, 31, 151)
HSLhsl(285, 66%, 36%)
HSVhsv(285, 79%, 59%)
CMYKcmyk(20.5%, 79.5%, 0%, 40.8%)
CIE-LABlab(32.28, 54.84, -46.81)
CIE-LCHlch(32.28, 72.11, 319.51°)
OKLaboklab(44.08% 0.1337 -0.1321)
OKLCHoklch(44.08% 0.188 315.3)
XYZxyz(13.8207, 7.2079, 29.9354)
Luminance0.0721 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781F97 #3E971F
analogous
#3C1F97 #781F97 #971F7A
triadic
#781F97 #97781F #1F9778
tetradic
#781F97 #973C1F #3E971F #1F7A97
square
#781F97 #973C1F #3E971F #1F7A97
split-complementary
#781F97 #7A971F #1F973C
monochromatic
#270A31 #501564 #781F97 #A029CA #B954DC

Accessibility & contrast

On white

8.60
#781F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#781F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781F97
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781F97#FFFFFF#000000##FFFFFF
##781F971.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479A
Deuteranopia (green-blind)
#1A4E94
Tritanopia (blue-blind)
#753B5B
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #781f97;
/* rgb */ color: rgb(120, 31, 151);
/* oklch */ color: oklch(44.1% 0.188 315.3);
Tailwind
colors: {
  custom: {
    50: '#a366b6',
    500: '#781f97',
    950: '#000000',
  },
}
SCSS
$custom: #781f97;
$custom-light: #a366b6;
$custom-dark: #000000;
JSON
{
  "hex": "#781f97",
  "rgb": {
    "r": 120,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 284.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.44076,
    "c": 0.18796,
    "h": 315.3
  },
  "luminance": 0.07207
}

Semantic roles & 50–950 ramp

primary
#781F97
secondary
#6FBF52
accent
#E93F6B
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #781F97

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

Preview Lab → · Contrast checker → · Palette generator →

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