#781F6F#781F6F

#781F6F is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.4% C 0.154 H 332.4°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#781F6F
RGBrgb(120, 31, 111)
HSLhsl(306, 59%, 30%)
HSVhsv(306, 74%, 47%)
CMYKcmyk(0%, 74.2%, 7.5%, 52.9%)
CIE-LABlab(29.72, 47.38, -25.90)
CIE-LCHlch(29.72, 54.00, 331.33°)
OKLaboklab(41.44% 0.1362 -0.0711)
OKLCHoklch(41.44% 0.154 332.4)
XYZxyz(11.1050, 6.1216, 15.6326)
Luminance0.0612 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781F6F #1F7828
analogous
#541F78 #781F6F #781F43
triadic
#781F6F #6F781F #1F6F78
tetradic
#781F6F #78541F #1F7828 #1F4378
square
#781F6F #78541F #1F7828 #1F4378
split-complementary
#781F6F #43781F #1F7854
monochromatic
#180616 #471242 #781F6F #A92C9C #CE43C0

Accessibility & contrast

On white

9.44
#781F6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#781F6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781F6F
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781F6F#FFFFFF#000000##FFFFFF
##781F6F1.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3E71
Deuteranopia (green-blind)
#3C4A6D
Tritanopia (blue-blind)
#7D2845
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #781f6f;
/* rgb */ color: rgb(120, 31, 111);
/* oklch */ color: oklch(41.4% 0.154 332.4);
Tailwind
colors: {
  custom: {
    50: '#a26498',
    500: '#781f6f',
    950: '#000000',
  },
}
SCSS
$custom: #781f6f;
$custom-light: #a26498;
$custom-dark: #000000;
JSON
{
  "hex": "#781f6f",
  "rgb": {
    "r": 120,
    "g": 31,
    "b": 111
  },
  "hsl": {
    "h": 306.067,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.41436,
    "c": 0.15364,
    "h": 332.4
  },
  "luminance": 0.06121
}

Semantic roles & 50–950 ramp

primary
#781F6F
secondary
#47AB51
accent
#E25546
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #781F6F

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

Preview Lab → · Contrast checker → · Palette generator →

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