#781F78#781F78

#781F78 is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.0% C 0.161 H 328.0°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#781F78
RGBrgb(120, 31, 120)
HSLhsl(300, 59%, 30%)
HSVhsv(300, 74%, 47%)
CMYKcmyk(0%, 74.2%, 0%, 52.9%)
CIE-LABlab(30.23, 48.93, -30.82)
CIE-LCHlch(30.23, 57.83, 327.80°)
OKLaboklab(41.97% 0.1365 -0.0853)
OKLCHoklch(41.97% 0.161 328)
XYZxyz(11.6257, 6.3299, 18.3751)
Luminance0.0633 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781F78 #1F781F
analogous
#4C1F78 #781F78 #781F4C
triadic
#781F78 #78781F #1F7878
tetradic
#781F78 #784C1F #1F781F #1F4C78
square
#781F78 #784C1F #1F781F #1F4C78
split-complementary
#781F78 #4C781F #1F784C
monochromatic
#180618 #471247 #781F78 #A92CA9 #CE43CE

Accessibility & contrast

On white

9.27
#781F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#781F78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781F78
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781F78#FFFFFF#000000##FFFFFF
##781F781.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E407A
Deuteranopia (green-blind)
#374B76
Tritanopia (blue-blind)
#7C2D49
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #781f78;
/* rgb */ color: rgb(120, 31, 120);
/* oklch */ color: oklch(42.0% 0.161 328.0);
Tailwind
colors: {
  custom: {
    50: '#a2649f',
    500: '#781f78',
    950: '#000000',
  },
}
SCSS
$custom: #781f78;
$custom-light: #a2649f;
$custom-dark: #000000;
JSON
{
  "hex": "#781f78",
  "rgb": {
    "r": 120,
    "g": 31,
    "b": 120
  },
  "hsl": {
    "h": 300,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.41971,
    "c": 0.16099,
    "h": 328
  },
  "luminance": 0.06329
}

Semantic roles & 50–950 ramp

primary
#781F78
secondary
#47AB47
accent
#E24646
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #781F78

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

Preview Lab → · Contrast checker → · Palette generator →

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