#781F7A#781F7A

#781F7A is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.1% C 0.163 H 327.0°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#781F7A
RGBrgb(120, 31, 122)
HSLhsl(299, 59%, 30%)
HSVhsv(299, 75%, 48%)
CMYKcmyk(1.6%, 74.6%, 0%, 52.2%)
CIE-LABlab(30.35, 49.29, -31.89)
CIE-LCHlch(30.35, 58.70, 327.09°)
OKLaboklab(42.09% 0.1365 -0.0885)
OKLCHoklch(42.09% 0.163 327)
XYZxyz(11.7484, 6.3790, 19.0211)
Luminance0.0638 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781F7A #217A1F
analogous
#4A1F7A #781F7A #7A1F4F
triadic
#781F7A #7A781F #1F7A78
tetradic
#781F7A #7A4A1F #217A1F #1F4F7A
square
#781F7A #7A4A1F #217A1F #1F4F7A
split-complementary
#781F7A #4F7A1F #1F7A4A
monochromatic
#180618 #481349 #781F7A #A82BAB #CC44CF

Accessibility & contrast

On white

9.23
#781F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#781F7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781F7A
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781F7A#FFFFFF#000000##FFFFFF
##781F7A1.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A407D
Deuteranopia (green-blind)
#364B78
Tritanopia (blue-blind)
#7C2D4B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #781f7a;
/* rgb */ color: rgb(120, 31, 122);
/* oklch */ color: oklch(42.1% 0.163 327.0);
Tailwind
colors: {
  custom: {
    50: '#a265a1',
    500: '#781f7a',
    950: '#000000',
  },
}
SCSS
$custom: #781f7a;
$custom-light: #a265a1;
$custom-dark: #000000;
JSON
{
  "hex": "#781f7a",
  "rgb": {
    "r": 120,
    "g": 31,
    "b": 122
  },
  "hsl": {
    "h": 298.681,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.42094,
    "c": 0.16266,
    "h": 327
  },
  "luminance": 0.06378
}

Semantic roles & 50–950 ramp

primary
#781F7A
secondary
#4AAD47
accent
#E34549
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060F
muted
#7F7A7E

Preview Lab

Preview with #781F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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