#781B74#781B74

#781B74 is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.4% C 0.162 H 329.9°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#781B74
RGBrgb(120, 27, 116)
HSLhsl(303, 63%, 29%)
HSVhsv(303, 78%, 47%)
CMYKcmyk(0%, 77.5%, 3.3%, 52.9%)
CIE-LABlab(29.51, 49.62, -29.42)
CIE-LCHlch(29.51, 57.69, 329.34°)
OKLaboklab(41.38% 0.1404 -0.0813)
OKLCHoklch(41.38% 0.162 329.9)
XYZxyz(11.2900, 6.0388, 17.0906)
Luminance0.0604 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781B74 #1B781F
analogous
#4E1B78 #781B74 #781B46
triadic
#781B74 #74781B #1B7478
tetradic
#781B74 #784E1B #1B781F #1B4678
square
#781B74 #784E1B #1B781F #1B4678
split-complementary
#781B74 #46781B #1B784E
monochromatic
#190618 #461044 #781B74 #AA26A4 #D33BCC

Accessibility & contrast

On white

9.51
#781B74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#781B74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781B74
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781B74#FFFFFF#000000##FFFFFF
##781B741.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E3E76
Deuteranopia (green-blind)
#374A72
Tritanopia (blue-blind)
#7D2846
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #781b74;
/* rgb */ color: rgb(120, 27, 116);
/* oklch */ color: oklch(41.4% 0.162 329.9);
Tailwind
colors: {
  custom: {
    50: '#a2639c',
    500: '#781b74',
    950: '#000000',
  },
}
SCSS
$custom: #781b74;
$custom-light: #a2639c;
$custom-dark: #000000;
JSON
{
  "hex": "#781b74",
  "rgb": {
    "r": 120,
    "g": 27,
    "b": 116
  },
  "hsl": {
    "h": 302.581,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.41379,
    "c": 0.16223,
    "h": 329.9
  },
  "luminance": 0.06038
}

Semantic roles & 50–950 ramp

primary
#781B74
secondary
#43AC47
accent
#E64941
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #781B74

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

Preview Lab → · Contrast checker → · Palette generator →

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