#781F6E#781F6E

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

Color values

HEX#781F6E
RGBrgb(120, 31, 110)
HSLhsl(307, 59%, 30%)
HSVhsv(307, 74%, 47%)
CMYKcmyk(0%, 74.2%, 8.3%, 52.9%)
CIE-LABlab(29.66, 47.21, -25.35)
CIE-LCHlch(29.66, 53.59, 331.77°)
OKLaboklab(41.38% 0.1361 -0.0695)
OKLCHoklch(41.38% 0.153 332.9)
XYZxyz(11.0502, 6.0997, 15.3442)
Luminance0.0610 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781F6E #1F7829
analogous
#561F78 #781F6E #781F41
triadic
#781F6E #6E781F #1F6E78
tetradic
#781F6E #78561F #1F7829 #1F4178
square
#781F6E #78561F #1F7829 #1F4178
split-complementary
#781F6E #41781F #1F7856
monochromatic
#180616 #471241 #781F6E #A92C9B #CE43BF

Accessibility & contrast

On white

9.46
#781F6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #781F6E
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781F6E#FFFFFF#000000##FFFFFF
##781F6E1.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B3E70
Deuteranopia (green-blind)
#3C4A6C
Tritanopia (blue-blind)
#7E2844
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #781f6e;
/* rgb */ color: rgb(120, 31, 110);
/* oklch */ color: oklch(41.4% 0.153 332.9);
Tailwind
colors: {
  custom: {
    50: '#a26498',
    500: '#781f6e',
    950: '#000000',
  },
}
SCSS
$custom: #781f6e;
$custom-light: #a26498;
$custom-dark: #000000;
JSON
{
  "hex": "#781f6e",
  "rgb": {
    "r": 120,
    "g": 31,
    "b": 110
  },
  "hsl": {
    "h": 306.742,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.41379,
    "c": 0.15285,
    "h": 332.9
  },
  "luminance": 0.06099
}

Semantic roles & 50–950 ramp

primary
#781F6E
secondary
#47AB53
accent
#E25746
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060D
muted
#7F7A7E

Preview Lab

Preview with #781F6E

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

Preview Lab → · Contrast checker → · Palette generator →

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