#781E6C#781E6C

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

Color values

HEX#781E6C
RGBrgb(120, 30, 108)
HSLhsl(308, 60%, 29%)
HSVhsv(308, 75%, 47%)
CMYKcmyk(0%, 75%, 10%, 52.9%)
CIE-LABlab(29.43, 47.25, -24.44)
CIE-LCHlch(29.43, 53.19, 332.65°)
OKLaboklab(41.17% 0.137 -0.0669)
OKLCHoklch(41.17% 0.152 334)
XYZxyz(10.9169, 6.0053, 14.7686)
Luminance0.0600 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781E6C #1E782A
analogous
#571E78 #781E6C #781E3F
triadic
#781E6C #6C781E #1E6C78
tetradic
#781E6C #78571E #1E782A #1E3F78
square
#781E6C #78571E #1E782A #1E3F78
split-complementary
#781E6C #3F781E #1E7857
monochromatic
#180616 #471240 #781E6C #A92A98 #CF41BC

Accessibility & contrast

On white

9.54
#781E6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #781E6C
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781E6C#FFFFFF#000000##FFFFFF
##781E6C1.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C3D6E
Deuteranopia (green-blind)
#3D4A6A
Tritanopia (blue-blind)
#7E2643
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #781e6c;
/* rgb */ color: rgb(120, 30, 108);
/* oklch */ color: oklch(41.2% 0.152 334.0);
Tailwind
colors: {
  custom: {
    50: '#a26496',
    500: '#781e6c',
    950: '#000000',
  },
}
SCSS
$custom: #781e6c;
$custom-light: #a26496;
$custom-dark: #000000;
JSON
{
  "hex": "#781e6c",
  "rgb": {
    "r": 120,
    "g": 30,
    "b": 108
  },
  "hsl": {
    "h": 308,
    "s": 60,
    "l": 29.412
  },
  "oklch": {
    "l": 0.41173,
    "c": 0.15249,
    "h": 334
  },
  "luminance": 0.06004
}

Semantic roles & 50–950 ramp

primary
#781E6C
secondary
#46AC54
accent
#E35A45
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060D
muted
#7F7A7E

Preview Lab

Preview with #781E6C

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

Preview Lab → · Contrast checker → · Palette generator →

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