#7B1572#7B1572

#7B1572 is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.3% C 0.168 H 332.3°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#7B1572
RGBrgb(123, 21, 114)
HSLhsl(305, 71%, 28%)
HSVhsv(305, 83%, 48%)
CMYKcmyk(0%, 82.9%, 7.3%, 51.8%)
CIE-LABlab(29.32, 51.77, -28.41)
CIE-LCHlch(29.32, 59.05, 331.24°)
OKLaboklab(41.31% 0.1489 -0.0782)
OKLCHoklch(41.31% 0.168 332.3)
XYZxyz(11.4739, 5.9632, 16.4630)
Luminance0.0596 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1572 #157B1E
analogous
#51157B #7B1572 #7B153F
triadic
#7B1572 #727B15 #15727B
tetradic
#7B1572 #7B5115 #157B1E #153F7B
square
#7B1572 #7B5115 #157B1E #153F7B
split-complementary
#7B1572 #3F7B15 #157B51
monochromatic
#1A0418 #470C42 #7B1572 #AF1EA2 #DB2FCC

Accessibility & contrast

On white

9.58
#7B1572 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B1572
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1572#FFFFFF#000000##FFFFFF
##7B15721.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C3C74
Deuteranopia (green-blind)
#394A70
Tritanopia (blue-blind)
#812244
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7b1572;
/* rgb */ color: rgb(123, 21, 114);
/* oklch */ color: oklch(41.3% 0.168 332.3);
Tailwind
colors: {
  custom: {
    50: '#a5619b',
    500: '#7b1572',
    950: '#000000',
  },
}
SCSS
$custom: #7b1572;
$custom-light: #a5619b;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1572",
  "rgb": {
    "r": 123,
    "g": 21,
    "b": 114
  },
  "hsl": {
    "h": 305.294,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.4131,
    "c": 0.16816,
    "h": 332.3
  },
  "luminance": 0.05962
}

Semantic roles & 50–950 ramp

primary
#7B1572
secondary
#3BB046
accent
#EE4A3A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7B1572

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

Preview Lab → · Contrast checker → · Palette generator →

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