#7C1A7E#7C1A7E

#7C1A7E is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.6% C 0.173 H 327.2°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#7C1A7E
RGBrgb(124, 26, 126)
HSLhsl(299, 66%, 30%)
HSVhsv(299, 79%, 49%)
CMYKcmyk(1.6%, 79.4%, 0%, 50.6%)
CIE-LABlab(30.71, 52.55, -33.79)
CIE-LCHlch(30.71, 62.48, 327.26°)
OKLaboklab(42.57% 0.1457 -0.0938)
OKLCHoklch(42.57% 0.173 327.2)
XYZxyz(12.4473, 6.5311, 20.3397)
Luminance0.0653 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1A7E #1C7E1A
analogous
#4A1A7E #7C1A7E #7E1A4E
triadic
#7C1A7E #7E7C1A #1A7E7C
tetradic
#7C1A7E #7E4A1A #1C7E1A #1A4E7E
square
#7C1A7E #7E4A1A #1C7E1A #1A4E7E
split-complementary
#7C1A7E #4E7E1A #1A7E4A
monochromatic
#190519 #4A104B #7C1A7E #AE24B1 #D43CD7

Accessibility & contrast

On white

9.11
#7C1A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#7C1A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C1A7E
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1A7E#FFFFFF#000000##FFFFFF
##7C1A7E1.009.112.319.11
#FFFFFF9.111.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004081
Deuteranopia (green-blind)
#354D7C
Tritanopia (blue-blind)
#802B4C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7c1a7e;
/* rgb */ color: rgb(124, 26, 126);
/* oklch */ color: oklch(42.6% 0.173 327.2);
Tailwind
colors: {
  custom: {
    50: '#a563a4',
    500: '#7c1a7e',
    950: '#000000',
  },
}
SCSS
$custom: #7c1a7e;
$custom-light: #a563a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1a7e",
  "rgb": {
    "r": 124,
    "g": 26,
    "b": 126
  },
  "hsl": {
    "h": 298.8,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.42569,
    "c": 0.17327,
    "h": 327.2
  },
  "luminance": 0.0653
}

Semantic roles & 50–950 ramp

primary
#7C1A7E
secondary
#44B242
accent
#E93F42
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7C1A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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