#7C1D9C#7C1D9C

#7C1D9C is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.9% C 0.196 H 315.5°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#7C1D9C
RGBrgb(124, 29, 156)
HSLhsl(285, 69%, 36%)
HSVhsv(285, 81%, 61%)
CMYKcmyk(20.5%, 81.4%, 0%, 38.8%)
CIE-LABlab(33.06, 57.24, -48.57)
CIE-LCHlch(33.06, 75.06, 319.69°)
OKLaboklab(44.87% 0.1396 -0.1371)
OKLCHoklch(44.87% 0.196 315.5)
XYZxyz(14.7513, 7.5647, 32.1291)
Luminance0.0756 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1D9C #3D9C1D
analogous
#3D1D9C #7C1D9C #9C1D7D
triadic
#7C1D9C #9C7C1D #1D9C7C
tetradic
#7C1D9C #9C3D1D #3D9C1D #1D7D9C
square
#7C1D9C #9C3D1D #3D9C1D #1D7D9C
split-complementary
#7C1D9C #7D9C1D #1D9C3D
monochromatic
#2A0A35 #531368 #7C1D9C #A527D0 #BC54DF

Accessibility & contrast

On white

8.36
#7C1D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C1D9C
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1D9C#FFFFFF#000000##FFFFFF
##7C1D9C1.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499F
Deuteranopia (green-blind)
#175099
Tritanopia (blue-blind)
#793C5D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7c1d9c;
/* rgb */ color: rgb(124, 29, 156);
/* oklch */ color: oklch(44.9% 0.196 315.5);
Tailwind
colors: {
  custom: {
    50: '#a666ba',
    500: '#7c1d9c',
    950: '#000000',
  },
}
SCSS
$custom: #7c1d9c;
$custom-light: #a666ba;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1d9c",
  "rgb": {
    "r": 124,
    "g": 29,
    "b": 156
  },
  "hsl": {
    "h": 284.882,
    "s": 68.649,
    "l": 36.275
  },
  "oklch": {
    "l": 0.4487,
    "c": 0.19565,
    "h": 315.5
  },
  "luminance": 0.07564
}

Semantic roles & 50–950 ramp

primary
#7C1D9C
secondary
#6FC252
accent
#EB3C68
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7C1D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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