#7C1F7D#7C1F7D

#7C1F7D is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.9% C 0.167 H 327.6°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#7C1F7D
RGBrgb(124, 31, 125)
HSLhsl(299, 60%, 31%)
HSVhsv(299, 75%, 49%)
CMYKcmyk(0.8%, 75.2%, 0%, 51%)
CIE-LABlab(31.22, 50.75, -32.35)
CIE-LCHlch(31.22, 60.18, 327.48°)
OKLaboklab(42.91% 0.1411 -0.0897)
OKLCHoklch(42.91% 0.167 327.6)
XYZxyz(12.5037, 6.7466, 20.0417)
Luminance0.0675 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1F7D #207D1F
analogous
#4D1F7D #7C1F7D #7D1F4F
triadic
#7C1F7D #7D7C1F #1F7D7C
tetradic
#7C1F7D #7D4D1F #207D1F #1F4F7D
square
#7C1F7D #7D4D1F #207D1F #1F4F7D
split-complementary
#7C1F7D #4F7D1F #1F7D4D
monochromatic
#1B071B #4B134C #7C1F7D #AD2BAE #CF45D1

Accessibility & contrast

On white

8.94
#7C1F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#7C1F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C1F7D
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1F7D#FFFFFF#000000##FFFFFF
##7C1F7D1.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A4280
Deuteranopia (green-blind)
#384E7B
Tritanopia (blue-blind)
#802E4C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7c1f7d;
/* rgb */ color: rgb(124, 31, 125);
/* oklch */ color: oklch(42.9% 0.167 327.6);
Tailwind
colors: {
  custom: {
    50: '#a565a3',
    500: '#7c1f7d',
    950: '#000000',
  },
}
SCSS
$custom: #7c1f7d;
$custom-light: #a565a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1f7d",
  "rgb": {
    "r": 124,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 299.362,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.42912,
    "c": 0.16719,
    "h": 327.6
  },
  "luminance": 0.06746
}

Semantic roles & 50–950 ramp

primary
#7C1F7D
secondary
#49B048
accent
#E34446
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7C1F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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