#7A1571#7A1571

#7A1571 is a dark, vivid purple. Relative luminance 0.059; OKLCH L 41.1% C 0.167 H 332.3°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#7A1571
RGBrgb(122, 21, 113)
HSLhsl(305, 71%, 28%)
HSVhsv(305, 83%, 48%)
CMYKcmyk(0%, 82.8%, 7.4%, 52.2%)
CIE-LABlab(29.07, 51.39, -28.17)
CIE-LCHlch(29.07, 58.60, 331.27°)
OKLaboklab(41.08% 0.1478 -0.0776)
OKLCHoklch(41.08% 0.167 332.3)
XYZxyz(11.2749, 5.8671, 16.1582)
Luminance0.0587 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1571 #157A1E
analogous
#51157A #7A1571 #7A153E
triadic
#7A1571 #717A15 #15717A
tetradic
#7A1571 #7A5115 #157A1E #153E7A
square
#7A1571 #7A5115 #157A1E #153E7A
split-complementary
#7A1571 #3E7A15 #157A51
monochromatic
#1A0418 #460C41 #7A1571 #AE1EA1 #DB2ECC

Accessibility & contrast

On white

9.66
#7A1571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#7A1571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1571
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1571#FFFFFF#000000##FFFFFF
##7A15711.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C3C73
Deuteranopia (green-blind)
#39496F
Tritanopia (blue-blind)
#802243
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7a1571;
/* rgb */ color: rgb(122, 21, 113);
/* oklch */ color: oklch(41.1% 0.167 332.3);
Tailwind
colors: {
  custom: {
    50: '#a4619a',
    500: '#7a1571',
    950: '#000000',
  },
}
SCSS
$custom: #7a1571;
$custom-light: #a4619a;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1571",
  "rgb": {
    "r": 122,
    "g": 21,
    "b": 113
  },
  "hsl": {
    "h": 305.347,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.41081,
    "c": 0.16691,
    "h": 332.3
  },
  "luminance": 0.05866
}

Semantic roles & 50–950 ramp

primary
#7A1571
secondary
#3BAF46
accent
#ED4A3A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10050E
muted
#7F7A7E

Preview Lab

Preview with #7A1571

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

Preview Lab → · Contrast checker → · Palette generator →

#7A1571 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva