#781E7A#781E7A

#781E7A is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.0% C 0.164 H 327.1°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#781E7A
RGBrgb(120, 30, 122)
HSLhsl(299, 61%, 30%)
HSVhsv(299, 75%, 48%)
CMYKcmyk(1.6%, 75.4%, 0%, 52.2%)
CIE-LABlab(30.22, 49.64, -32.09)
CIE-LCHlch(30.22, 59.11, 327.12°)
OKLaboklab(42.01% 0.1375 -0.089)
OKLCHoklch(42.01% 0.164 327.1)
XYZxyz(11.7227, 6.3276, 19.0125)
Luminance0.0633 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781E7A #207A1E
analogous
#4A1E7A #781E7A #7A1E4E
triadic
#781E7A #7A781E #1E7A78
tetradic
#781E7A #7A4A1E #207A1E #1E4E7A
square
#781E7A #7A4A1E #207A1E #1E4E7A
split-complementary
#781E7A #4E7A1E #1E7A4A
monochromatic
#180619 #481249 #781E7A #A82AAB #CD42D0

Accessibility & contrast

On white

9.27
#781E7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#781E7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781E7A
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781E7A#FFFFFF#000000##FFFFFF
##781E7A1.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08407D
Deuteranopia (green-blind)
#354B78
Tritanopia (blue-blind)
#7C2D4A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #781e7a;
/* rgb */ color: rgb(120, 30, 122);
/* oklch */ color: oklch(42.0% 0.164 327.1);
Tailwind
colors: {
  custom: {
    50: '#a264a1',
    500: '#781e7a',
    950: '#000000',
  },
}
SCSS
$custom: #781e7a;
$custom-light: #a264a1;
$custom-dark: #000000;
JSON
{
  "hex": "#781e7a",
  "rgb": {
    "r": 120,
    "g": 30,
    "b": 122
  },
  "hsl": {
    "h": 298.696,
    "s": 60.526,
    "l": 29.804
  },
  "oklch": {
    "l": 0.42005,
    "c": 0.16381,
    "h": 327.1
  },
  "luminance": 0.06327
}

Semantic roles & 50–950 ramp

primary
#781E7A
secondary
#48AE46
accent
#E44448
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060F
muted
#7F7A7E

Preview Lab

Preview with #781E7A

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

Preview Lab → · Contrast checker → · Palette generator →

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