#7C1D7B#7C1D7B

#7C1D7B is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.6% C 0.168 H 328.5°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#7C1D7B
RGBrgb(124, 29, 123)
HSLhsl(301, 62%, 30%)
HSVhsv(301, 77%, 49%)
CMYKcmyk(0%, 76.6%, 0.8%, 51.4%)
CIE-LABlab(30.87, 51.08, -31.66)
CIE-LCHlch(30.87, 60.09, 328.21°)
OKLaboklab(42.62% 0.143 -0.0877)
OKLCHoklch(42.62% 0.168 328.5)
XYZxyz(12.3266, 6.5948, 19.3587)
Luminance0.0659 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1D7B #1D7C1E
analogous
#4E1D7C #7C1D7B #7C1D4B
triadic
#7C1D7B #7B7C1D #1D7B7C
tetradic
#7C1D7B #7C4E1D #1D7C1E #1D4B7C
square
#7C1D7B #7C4E1D #1D7C1E #1D4B7C
split-complementary
#7C1D7B #4B7C1D #1D7C4E
monochromatic
#190619 #4A114A #7C1D7B #AE29AC #D341D1

Accessibility & contrast

On white

9.06
#7C1D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#7C1D7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C1D7B
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1D7B#FFFFFF#000000##FFFFFF
##7C1D7B1.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A417E
Deuteranopia (green-blind)
#384D79
Tritanopia (blue-blind)
#802C4B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7c1d7b;
/* rgb */ color: rgb(124, 29, 123);
/* oklch */ color: oklch(42.6% 0.168 328.5);
Tailwind
colors: {
  custom: {
    50: '#a564a1',
    500: '#7c1d7b',
    950: '#000000',
  },
}
SCSS
$custom: #7c1d7b;
$custom-light: #a564a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1d7b",
  "rgb": {
    "r": 124,
    "g": 29,
    "b": 123
  },
  "hsl": {
    "h": 300.632,
    "s": 62.092,
    "l": 30
  },
  "oklch": {
    "l": 0.42618,
    "c": 0.16776,
    "h": 328.5
  },
  "luminance": 0.06594
}

Semantic roles & 50–950 ramp

primary
#7C1D7B
secondary
#45B046
accent
#E54443
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7C1D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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