#7B1571#7B1571

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

Color values

HEX#7B1571
RGBrgb(123, 21, 113)
HSLhsl(306, 71%, 28%)
HSVhsv(306, 83%, 48%)
CMYKcmyk(0%, 82.9%, 8.1%, 51.8%)
CIE-LABlab(29.26, 51.61, -27.86)
CIE-LCHlch(29.26, 58.65, 331.64°)
OKLaboklab(41.25% 0.1488 -0.0766)
OKLCHoklch(41.25% 0.167 332.8)
XYZxyz(11.4172, 5.9405, 16.1649)
Luminance0.0594 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1571 #157B1F
analogous
#52157B #7B1571 #7B153E
triadic
#7B1571 #717B15 #15717B
tetradic
#7B1571 #7B5215 #157B1F #153E7B
square
#7B1571 #7B5215 #157B1F #153E7B
split-complementary
#7B1571 #3E7B15 #157B52
monochromatic
#1A0418 #470C41 #7B1571 #AF1EA1 #DB2FCB

Accessibility & contrast

On white

9.60
#7B1571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#7B1571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1571
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1571#FFFFFF#000000##FFFFFF
##7B15711.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E3C73
Deuteranopia (green-blind)
#394A6F
Tritanopia (blue-blind)
#812243
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7b1571;
/* rgb */ color: rgb(123, 21, 113);
/* oklch */ color: oklch(41.3% 0.167 332.8);
Tailwind
colors: {
  custom: {
    50: '#a5619a',
    500: '#7b1571',
    950: '#000000',
  },
}
SCSS
$custom: #7b1571;
$custom-light: #a5619a;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1571",
  "rgb": {
    "r": 123,
    "g": 21,
    "b": 113
  },
  "hsl": {
    "h": 305.882,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.4125,
    "c": 0.16742,
    "h": 332.8
  },
  "luminance": 0.0594
}

Semantic roles & 50–950 ramp

primary
#7B1571
secondary
#3BB047
accent
#EE4C3A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7B1571

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

Preview Lab → · Contrast checker → · Palette generator →

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