#7C1D7D#7C1D7D

#7C1D7D is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.7% C 0.169 H 327.6°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#7C1D7D
RGBrgb(124, 29, 125)
HSLhsl(299, 62%, 30%)
HSVhsv(299, 77%, 49%)
CMYKcmyk(0.8%, 76.8%, 0%, 51%)
CIE-LABlab(30.99, 51.43, -32.73)
CIE-LCHlch(30.99, 60.96, 327.53°)
OKLaboklab(42.74% 0.143 -0.0908)
OKLCHoklch(42.74% 0.169 327.6)
XYZxyz(12.4530, 6.6454, 20.0248)
Luminance0.0664 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1D7D #1E7D1D
analogous
#4C1D7D #7C1D7D #7D1D4E
triadic
#7C1D7D #7D7C1D #1D7D7C
tetradic
#7C1D7D #7D4C1D #1E7D1D #1D4E7D
square
#7C1D7D #7D4C1D #1E7D1D #1D4E7D
split-complementary
#7C1D7D #4E7D1D #1D7D4C
monochromatic
#19061A #4B114B #7C1D7D #AD29AF #D141D3

Accessibility & contrast

On white

9.02
#7C1D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#7C1D7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C1D7D
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1D7D#FFFFFF#000000##FFFFFF
##7C1D7D1.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#054180
Deuteranopia (green-blind)
#374D7B
Tritanopia (blue-blind)
#802D4C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7c1d7d;
/* rgb */ color: rgb(124, 29, 125);
/* oklch */ color: oklch(42.7% 0.169 327.6);
Tailwind
colors: {
  custom: {
    50: '#a564a3',
    500: '#7c1d7d',
    950: '#000000',
  },
}
SCSS
$custom: #7c1d7d;
$custom-light: #a564a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1d7d",
  "rgb": {
    "r": 124,
    "g": 29,
    "b": 125
  },
  "hsl": {
    "h": 299.375,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.42742,
    "c": 0.16938,
    "h": 327.6
  },
  "luminance": 0.06644
}

Semantic roles & 50–950 ramp

primary
#7C1D7D
secondary
#46B145
accent
#E54244
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7C1D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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