#781F72#781F72

#781F72 is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.6% C 0.156 H 330.9°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#781F72
RGBrgb(120, 31, 114)
HSLhsl(304, 59%, 30%)
HSVhsv(304, 74%, 47%)
CMYKcmyk(0%, 74.2%, 5%, 52.9%)
CIE-LABlab(29.88, 47.89, -27.55)
CIE-LCHlch(29.88, 55.25, 330.08°)
OKLaboklab(41.61% 0.1364 -0.0759)
OKLCHoklch(41.61% 0.156 330.9)
XYZxyz(11.2730, 6.1888, 16.5172)
Luminance0.0619 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781F72 #1F7825
analogous
#521F78 #781F72 #781F46
triadic
#781F72 #72781F #1F7278
tetradic
#781F72 #78521F #1F7825 #1F4678
square
#781F72 #78521F #1F7825 #1F4678
split-complementary
#781F72 #46781F #1F7852
monochromatic
#180617 #471244 #781F72 #A92CA0 #CE43C5

Accessibility & contrast

On white

9.39
#781F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#781F72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781F72
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781F72#FFFFFF#000000##FFFFFF
##781F721.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173F74
Deuteranopia (green-blind)
#3A4B70
Tritanopia (blue-blind)
#7D2A46
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #781f72;
/* rgb */ color: rgb(120, 31, 114);
/* oklch */ color: oklch(41.6% 0.156 330.9);
Tailwind
colors: {
  custom: {
    50: '#a2649b',
    500: '#781f72',
    950: '#000000',
  },
}
SCSS
$custom: #781f72;
$custom-light: #a2649b;
$custom-dark: #000000;
JSON
{
  "hex": "#781f72",
  "rgb": {
    "r": 120,
    "g": 31,
    "b": 114
  },
  "hsl": {
    "h": 304.045,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.4161,
    "c": 0.15605,
    "h": 330.9
  },
  "luminance": 0.06188
}

Semantic roles & 50–950 ramp

primary
#781F72
secondary
#47AB4E
accent
#E25046
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #781F72

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

Preview Lab → · Contrast checker → · Palette generator →

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