#781F74#781F74

#781F74 is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.7% C 0.158 H 329.9°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#781F74
RGBrgb(120, 31, 116)
HSLhsl(303, 59%, 30%)
HSVhsv(303, 74%, 47%)
CMYKcmyk(0%, 74.2%, 3.3%, 52.9%)
CIE-LABlab(30.00, 48.23, -28.65)
CIE-LCHlch(30.00, 56.10, 329.29°)
OKLaboklab(41.73% 0.1364 -0.0791)
OKLCHoklch(41.73% 0.158 329.9)
XYZxyz(11.3880, 6.2349, 17.1233)
Luminance0.0623 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781F74 #1F7823
analogous
#501F78 #781F74 #781F47
triadic
#781F74 #74781F #1F7478
tetradic
#781F74 #78501F #1F7823 #1F4778
square
#781F74 #78501F #1F7823 #1F4778
split-complementary
#781F74 #47781F #1F7850
monochromatic
#180618 #471245 #781F74 #A92CA3 #CE43C8

Accessibility & contrast

On white

9.35
#781F74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#781F74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781F74
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781F74#FFFFFF#000000##FFFFFF
##781F741.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153F76
Deuteranopia (green-blind)
#394B72
Tritanopia (blue-blind)
#7D2B47
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #781f74;
/* rgb */ color: rgb(120, 31, 116);
/* oklch */ color: oklch(41.7% 0.158 329.9);
Tailwind
colors: {
  custom: {
    50: '#a2649c',
    500: '#781f74',
    950: '#000000',
  },
}
SCSS
$custom: #781f74;
$custom-light: #a2649c;
$custom-dark: #000000;
JSON
{
  "hex": "#781f74",
  "rgb": {
    "r": 120,
    "g": 31,
    "b": 116
  },
  "hsl": {
    "h": 302.697,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.41728,
    "c": 0.15768,
    "h": 329.9
  },
  "luminance": 0.06234
}

Semantic roles & 50–950 ramp

primary
#781F74
secondary
#47AB4C
accent
#E24D46
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #781F74

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

Preview Lab → · Contrast checker → · Palette generator →

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