#7C1572#7C1572

#7C1572 is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.5% C 0.169 H 332.7°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#7C1572
RGBrgb(124, 21, 114)
HSLhsl(306, 71%, 28%)
HSVhsv(306, 83%, 49%)
CMYKcmyk(0%, 83.1%, 8.1%, 51.4%)
CIE-LABlab(29.51, 51.99, -28.10)
CIE-LCHlch(29.51, 59.10, 331.61°)
OKLaboklab(41.48% 0.1499 -0.0773)
OKLCHoklch(41.48% 0.169 332.7)
XYZxyz(11.6177, 6.0373, 16.4698)
Luminance0.0604 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1572 #157C1F
analogous
#52157C #7C1572 #7C153E
triadic
#7C1572 #727C15 #15727C
tetradic
#7C1572 #7C5215 #157C1F #153E7C
square
#7C1572 #7C5215 #157C1F #153E7C
split-complementary
#7C1572 #3E7C15 #157C52
monochromatic
#1A0418 #480C42 #7C1572 #B01EA2 #DC30CB

Accessibility & contrast

On white

9.51
#7C1572 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#7C1572 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C1572
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1572#FFFFFF#000000##FFFFFF
##7C15721.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)
#0D3C74
Deuteranopia (green-blind)
#3A4B70
Tritanopia (blue-blind)
#822244
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7c1572;
/* rgb */ color: rgb(124, 21, 114);
/* oklch */ color: oklch(41.5% 0.169 332.7);
Tailwind
colors: {
  custom: {
    50: '#a5619b',
    500: '#7c1572',
    950: '#000000',
  },
}
SCSS
$custom: #7c1572;
$custom-light: #a5619b;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1572",
  "rgb": {
    "r": 124,
    "g": 21,
    "b": 114
  },
  "hsl": {
    "h": 305.825,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.41478,
    "c": 0.16868,
    "h": 332.7
  },
  "luminance": 0.06036
}

Semantic roles & 50–950 ramp

primary
#7C1572
secondary
#3CB147
accent
#EE4B3A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7C1572

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

Preview Lab → · Contrast checker → · Palette generator →

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