#7D1C87#7D1C87

#7D1C87 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.5% C 0.179 H 323.8°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#7D1C87
RGBrgb(125, 28, 135)
HSLhsl(294, 66%, 32%)
HSVhsv(294, 79%, 53%)
CMYKcmyk(7.4%, 79.3%, 0%, 47.1%)
CIE-LABlab(31.67, 53.75, -37.88)
CIE-LCHlch(31.67, 65.75, 324.83°)
OKLaboklab(43.46% 0.1445 -0.1058)
OKLCHoklch(43.46% 0.179 323.8)
XYZxyz(13.2455, 6.9406, 23.5590)
Luminance0.0694 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1C87 #26871C
analogous
#481C87 #7D1C87 #871C5B
triadic
#7D1C87 #877D1C #1C877D
tetradic
#7D1C87 #87481C #26871C #1C5B87
square
#7D1C87 #87481C #26871C #1C5B87
split-complementary
#7D1C87 #5B871C #1C8748
monochromatic
#1F0722 #4E1154 #7D1C87 #AC27BA #CB45D8

Accessibility & contrast

On white

8.79
#7D1C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#7D1C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1C87
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1C87#FFFFFF#000000##FFFFFF
##7D1C871.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438A
Deuteranopia (green-blind)
#304E85
Tritanopia (blue-blind)
#7F3151
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7d1c87;
/* rgb */ color: rgb(125, 28, 135);
/* oklch */ color: oklch(43.5% 0.179 323.8);
Tailwind
colors: {
  custom: {
    50: '#a665aa',
    500: '#7d1c87',
    950: '#000000',
  },
}
SCSS
$custom: #7d1c87;
$custom-light: #a665aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1c87",
  "rgb": {
    "r": 125,
    "g": 28,
    "b": 135
  },
  "hsl": {
    "h": 294.393,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.43464,
    "c": 0.1791,
    "h": 323.8
  },
  "luminance": 0.0694
}

Semantic roles & 50–950 ramp

primary
#7D1C87
secondary
#50BA45
accent
#E93F4F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7D1C87

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

Preview Lab → · Contrast checker → · Palette generator →

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