#7C1C8D#7C1C8D

#7C1C8D is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.7% C 0.184 H 321.0°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#7C1C8D
RGBrgb(124, 28, 141)
HSLhsl(291, 67%, 33%)
HSVhsv(291, 80%, 55%)
CMYKcmyk(12.1%, 80.1%, 0%, 44.7%)
CIE-LABlab(31.90, 54.65, -41.24)
CIE-LCHlch(31.90, 68.47, 322.96°)
OKLaboklab(43.72% 0.1427 -0.1156)
OKLCHoklch(43.72% 0.184 321)
XYZxyz(13.5346, 7.0394, 25.8400)
Luminance0.0704 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1C8D #2D8D1C
analogous
#431C8D #7C1C8D #8D1C66
triadic
#7C1C8D #8D7C1C #1C8D7C
tetradic
#7C1C8D #8D431C #2D8D1C #1C668D
square
#7C1C8D #8D431C #2D8D1C #1C668D
split-complementary
#7C1C8D #668D1C #1C8D43
monochromatic
#220827 #4F125A #7C1C8D #A926C0 #C549DB

Accessibility & contrast

On white

8.72
#7C1C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#7C1C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C1C8D
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1C8D#FFFFFF#000000##FFFFFF
##7C1C8D1.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004490
Deuteranopia (green-blind)
#2A4E8B
Tritanopia (blue-blind)
#7D3455
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7c1c8d;
/* rgb */ color: rgb(124, 28, 141);
/* oklch */ color: oklch(43.7% 0.184 321.0);
Tailwind
colors: {
  custom: {
    50: '#a665af',
    500: '#7c1c8d',
    950: '#000000',
  },
}
SCSS
$custom: #7c1c8d;
$custom-light: #a665af;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1c8d",
  "rgb": {
    "r": 124,
    "g": 28,
    "b": 141
  },
  "hsl": {
    "h": 290.973,
    "s": 66.864,
    "l": 33.137
  },
  "oklch": {
    "l": 0.43717,
    "c": 0.1837,
    "h": 321
  },
  "luminance": 0.07039
}

Semantic roles & 50–950 ramp

primary
#7C1C8D
secondary
#5ABD48
accent
#EA3E58
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7C1C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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