#7C1D8D#7C1D8D

#7C1D8D is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.8% C 0.183 H 320.9°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#7C1D8D
RGBrgb(124, 29, 141)
HSLhsl(291, 66%, 33%)
HSVhsv(291, 79%, 55%)
CMYKcmyk(12.1%, 79.4%, 0%, 44.7%)
CIE-LABlab(32.01, 54.33, -41.07)
CIE-LCHlch(32.01, 68.11, 322.92°)
OKLaboklab(43.79% 0.1419 -0.1151)
OKLCHoklch(43.79% 0.183 320.9)
XYZxyz(13.5587, 7.0876, 25.8480)
Luminance0.0709 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1D8D #2E8D1D
analogous
#441D8D #7C1D8D #8D1D66
triadic
#7C1D8D #8D7C1D #1D8D7C
tetradic
#7C1D8D #8D441D #2E8D1D #1D668D
square
#7C1D8D #8D441D #2E8D1D #1D668D
split-complementary
#7C1D8D #668D1D #1D8D44
monochromatic
#230827 #4F135A #7C1D8D #A927C0 #C44BDA

Accessibility & contrast

On white

8.69
#7C1D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#7C1D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C1D8D
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1D8D#FFFFFF#000000##FFFFFF
##7C1D8D1.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c1d8d;
/* rgb */ color: rgb(124, 29, 141);
/* oklch */ color: oklch(43.8% 0.183 320.9);
Tailwind
colors: {
  custom: {
    50: '#a665af',
    500: '#7c1d8d',
    950: '#000000',
  },
}
SCSS
$custom: #7c1d8d;
$custom-light: #a665af;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1d8d",
  "rgb": {
    "r": 124,
    "g": 29,
    "b": 141
  },
  "hsl": {
    "h": 290.893,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.43794,
    "c": 0.18273,
    "h": 320.9
  },
  "luminance": 0.07087
}

Semantic roles & 50–950 ramp

primary
#7C1D8D
secondary
#5BBC4A
accent
#E93F59
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7C1D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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