#7C1E7A#7C1E7A

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

Color values

HEX#7C1E7A
RGBrgb(124, 30, 122)
HSLhsl(301, 61%, 30%)
HSVhsv(301, 76%, 49%)
CMYKcmyk(0%, 75.8%, 1.6%, 51.4%)
CIE-LABlab(30.93, 50.57, -30.93)
CIE-LCHlch(30.93, 59.28, 328.55°)
OKLaboklab(42.64% 0.1421 -0.0856)
OKLCHoklch(42.64% 0.166 328.9)
XYZxyz(12.2892, 6.6197, 19.0390)
Luminance0.0662 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1E7A #1E7C20
analogous
#4F1E7C #7C1E7A #7C1E4B
triadic
#7C1E7A #7A7C1E #1E7A7C
tetradic
#7C1E7A #7C4F1E #1E7C20 #1E4B7C
square
#7C1E7A #7C4F1E #1E7C20 #1E4B7C
split-complementary
#7C1E7A #4B7C1E #1E7C4F
monochromatic
#190619 #4B124A #7C1E7A #AD2AAA #D143CE

Accessibility & contrast

On white

9.04
#7C1E7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C1E7A
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1E7A#FFFFFF#000000##FFFFFF
##7C1E7A1.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E417D
Deuteranopia (green-blind)
#394D78
Tritanopia (blue-blind)
#802C4A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7c1e7a;
/* rgb */ color: rgb(124, 30, 122);
/* oklch */ color: oklch(42.6% 0.166 328.9);
Tailwind
colors: {
  custom: {
    50: '#a565a1',
    500: '#7c1e7a',
    950: '#000000',
  },
}
SCSS
$custom: #7c1e7a;
$custom-light: #a565a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1e7a",
  "rgb": {
    "r": 124,
    "g": 30,
    "b": 122
  },
  "hsl": {
    "h": 301.277,
    "s": 61.039,
    "l": 30.196
  },
  "oklch": {
    "l": 0.42641,
    "c": 0.16585,
    "h": 328.9
  },
  "luminance": 0.06619
}

Semantic roles & 50–950 ramp

primary
#7C1E7A
secondary
#46AF49
accent
#E44744
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7C1E7A

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

Preview Lab → · Contrast checker → · Palette generator →

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