#781F6D#781F6D

#781F6D is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.3% C 0.152 H 333.5°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#781F6D
RGBrgb(120, 31, 109)
HSLhsl(307, 59%, 30%)
HSVhsv(307, 74%, 47%)
CMYKcmyk(0%, 74.2%, 9.2%, 52.9%)
CIE-LABlab(29.61, 47.04, -24.79)
CIE-LCHlch(29.61, 53.18, 332.21°)
OKLaboklab(41.32% 0.136 -0.0679)
OKLCHoklch(41.32% 0.152 333.5)
XYZxyz(10.9961, 6.0781, 15.0591)
Luminance0.0608 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781F6D #1F782A
analogous
#571F78 #781F6D #781F41
triadic
#781F6D #6D781F #1F6D78
tetradic
#781F6D #78571F #1F782A #1F4178
square
#781F6D #78571F #1F782A #1F4178
split-complementary
#781F6D #41781F #1F7857
monochromatic
#180616 #471241 #781F6D #A92C99 #CE43BD

Accessibility & contrast

On white

9.48
#781F6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #781F6D
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781F6D#FFFFFF#000000##FFFFFF
##781F6D1.009.482.229.48
#FFFFFF9.481.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C3E6F
Deuteranopia (green-blind)
#3C4A6B
Tritanopia (blue-blind)
#7E2743
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #781f6d;
/* rgb */ color: rgb(120, 31, 109);
/* oklch */ color: oklch(41.3% 0.152 333.5);
Tailwind
colors: {
  custom: {
    50: '#a26497',
    500: '#781f6d',
    950: '#000000',
  },
}
SCSS
$custom: #781f6d;
$custom-light: #a26497;
$custom-dark: #000000;
JSON
{
  "hex": "#781f6d",
  "rgb": {
    "r": 120,
    "g": 31,
    "b": 109
  },
  "hsl": {
    "h": 307.416,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.41323,
    "c": 0.15205,
    "h": 333.5
  },
  "luminance": 0.06077
}

Semantic roles & 50–950 ramp

primary
#781F6D
secondary
#47AB54
accent
#E25946
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060D
muted
#7F7A7E

Preview Lab

Preview with #781F6D

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

Preview Lab → · Contrast checker → · Palette generator →

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