#781571#781571

#781571 is a dark, vivid purple. Relative luminance 0.057; OKLCH L 40.7% C 0.166 H 331.4°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#781571
RGBrgb(120, 21, 113)
HSLhsl(304, 70%, 28%)
HSVhsv(304, 83%, 47%)
CMYKcmyk(0%, 82.5%, 5.8%, 52.9%)
CIE-LABlab(28.70, 50.94, -28.79)
CIE-LCHlch(28.70, 58.51, 330.53°)
OKLaboklab(40.74% 0.1457 -0.0794)
OKLCHoklch(40.74% 0.166 331.4)
XYZxyz(10.9945, 5.7226, 16.1451)
Luminance0.0572 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781571 #15781C
analogous
#4D1578 #781571 #781540
triadic
#781571 #717815 #157178
tetradic
#781571 #784D15 #15781C #154078
square
#781571 #784D15 #15781C #154078
split-complementary
#781571 #407815 #15784D
monochromatic
#1A0519 #440C40 #781571 #AC1EA2 #DA2DCE

Accessibility & contrast

On white

9.79
#781571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#781571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781571
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781571#FFFFFF#000000##FFFFFF
##7815711.009.792.149.79
#FFFFFF9.791.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#093B73
Deuteranopia (green-blind)
#37486F
Tritanopia (blue-blind)
#7D2343
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #781571;
/* rgb */ color: rgb(120, 21, 113);
/* oklch */ color: oklch(40.7% 0.166 331.4);
Tailwind
colors: {
  custom: {
    50: '#a2609a',
    500: '#781571',
    950: '#000000',
  },
}
SCSS
$custom: #781571;
$custom-light: #a2609a;
$custom-dark: #000000;
JSON
{
  "hex": "#781571",
  "rgb": {
    "r": 120,
    "g": 21,
    "b": 113
  },
  "hsl": {
    "h": 304.242,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.40745,
    "c": 0.16588,
    "h": 331.4
  },
  "luminance": 0.05722
}

Semantic roles & 50–950 ramp

primary
#781571
secondary
#3BAE43
accent
#ED473B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F050E
muted
#7F7A7E

Preview Lab

Preview with #781571

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

Preview Lab → · Contrast checker → · Palette generator →

#781571 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva