#7C1C9D#7C1C9D

#7C1C9D is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.9% C 0.197 H 315.2°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#7C1C9D
RGBrgb(124, 28, 157)
HSLhsl(285, 70%, 36%)
HSVhsv(285, 82%, 62%)
CMYKcmyk(21%, 82.2%, 0%, 38.4%)
CIE-LABlab(33.03, 57.74, -49.22)
CIE-LCHlch(33.03, 75.87, 319.55°)
OKLaboklab(44.87% 0.1401 -0.139)
OKLCHoklch(44.87% 0.197 315.2)
XYZxyz(14.8122, 7.5505, 32.5689)
Luminance0.0755 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1C9D #3D9D1C
analogous
#3C1C9D #7C1C9D #9D1C7E
triadic
#7C1C9D #9D7C1C #1C9D7C
tetradic
#7C1C9D #9D3C1C #3D9D1C #1C7E9D
square
#7C1C9D #9D3C1C #3D9D1C #1C7E9D
split-complementary
#7C1C9D #7E9D1C #1C9D3C
monochromatic
#2A0935 #531369 #7C1C9D #A525D1 #BC53E0

Accessibility & contrast

On white

8.37
#7C1C9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#7C1C9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C1C9D
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1C9D#FFFFFF#000000##FFFFFF
##7C1C9D1.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A0
Deuteranopia (green-blind)
#14509A
Tritanopia (blue-blind)
#793C5E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7c1c9d;
/* rgb */ color: rgb(124, 28, 157);
/* oklch */ color: oklch(44.9% 0.197 315.2);
Tailwind
colors: {
  custom: {
    50: '#a666bb',
    500: '#7c1c9d',
    950: '#000000',
  },
}
SCSS
$custom: #7c1c9d;
$custom-light: #a666bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1c9d",
  "rgb": {
    "r": 124,
    "g": 28,
    "b": 157
  },
  "hsl": {
    "h": 284.651,
    "s": 69.73,
    "l": 36.275
  },
  "oklch": {
    "l": 0.44872,
    "c": 0.1974,
    "h": 315.2
  },
  "luminance": 0.0755
}

Semantic roles & 50–950 ramp

primary
#7C1C9D
secondary
#6FC351
accent
#ED3B69
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7C1C9D

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

Preview Lab → · Contrast checker → · Palette generator →

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