#781F6A#781F6A

#781F6A is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.2% C 0.150 H 335.1°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#781F6A
RGBrgb(120, 31, 106)
HSLhsl(309, 59%, 30%)
HSVhsv(309, 74%, 47%)
CMYKcmyk(0%, 74.2%, 11.7%, 52.9%)
CIE-LABlab(29.45, 46.55, -23.12)
CIE-LCHlch(29.45, 51.98, 333.59°)
OKLaboklab(41.16% 0.1358 -0.0631)
OKLCHoklch(41.16% 0.15 335.1)
XYZxyz(10.8374, 6.0146, 14.2230)
Luminance0.0601 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781F6A #1F782D
analogous
#5A1F78 #781F6A #781F3E
triadic
#781F6A #6A781F #1F6A78
tetradic
#781F6A #785A1F #1F782D #1F3E78
square
#781F6A #785A1F #1F782D #1F3E78
split-complementary
#781F6A #3E781F #1F785A
monochromatic
#180615 #47123F #781F6A #A92C95 #CE43B8

Accessibility & contrast

On white

9.53
#781F6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#781F6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781F6A
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781F6A#FFFFFF#000000##FFFFFF
##781F6A1.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F3D6C
Deuteranopia (green-blind)
#3E4A68
Tritanopia (blue-blind)
#7E2642
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #781f6a;
/* rgb */ color: rgb(120, 31, 106);
/* oklch */ color: oklch(41.2% 0.150 335.1);
Tailwind
colors: {
  custom: {
    50: '#a26495',
    500: '#781f6a',
    950: '#000000',
  },
}
SCSS
$custom: #781f6a;
$custom-light: #a26495;
$custom-dark: #000000;
JSON
{
  "hex": "#781f6a",
  "rgb": {
    "r": 120,
    "g": 31,
    "b": 106
  },
  "hsl": {
    "h": 309.438,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.41156,
    "c": 0.14972,
    "h": 335.1
  },
  "luminance": 0.06014
}

Semantic roles & 50–950 ramp

primary
#781F6A
secondary
#47AB57
accent
#E25E46
background
#FAF6F9
surface
#F4EBF1
border
#CEC6CB
text
#0F060D
muted
#7F7A7E

Preview Lab

Preview with #781F6A

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

Preview Lab → · Contrast checker → · Palette generator →

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