#7D1C9F#7D1C9F

#7D1C9F is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.2% C 0.199 H 315.0°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#7D1C9F
RGBrgb(125, 28, 159)
HSLhsl(284, 70%, 37%)
HSVhsv(284, 82%, 62%)
CMYKcmyk(21.4%, 82.4%, 0%, 37.6%)
CIE-LABlab(33.34, 58.31, -49.93)
CIE-LCHlch(33.34, 76.77, 319.43°)
OKLaboklab(45.17% 0.141 -0.1411)
OKLCHoklch(45.17% 0.199 315)
XYZxyz(15.1297, 7.6943, 33.4823)
Luminance0.0769 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1C9F #3E9F1C
analogous
#3B1C9F #7D1C9F #9F1C80
triadic
#7D1C9F #9F7D1C #1C9F7D
tetradic
#7D1C9F #9F3B1C #3E9F1C #1C809F
square
#7D1C9F #9F3B1C #3E9F1C #1C809F
split-complementary
#7D1C9F #809F1C #1C9F3B
monochromatic
#2B0A37 #54136B #7D1C9F #A625D3 #BC54E1

Accessibility & contrast

On white

8.27
#7D1C9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7D1C9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1C9F
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1C9F#FFFFFF#000000##FFFFFF
##7D1C9F1.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A2
Deuteranopia (green-blind)
#13519C
Tritanopia (blue-blind)
#7A3C5F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7d1c9f;
/* rgb */ color: rgb(125, 28, 159);
/* oklch */ color: oklch(45.2% 0.199 315.0);
Tailwind
colors: {
  custom: {
    50: '#a766bc',
    500: '#7d1c9f',
    950: '#000000',
  },
}
SCSS
$custom: #7d1c9f;
$custom-light: #a766bc;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1c9f",
  "rgb": {
    "r": 125,
    "g": 28,
    "b": 159
  },
  "hsl": {
    "h": 284.427,
    "s": 70.053,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45167,
    "c": 0.19946,
    "h": 315
  },
  "luminance": 0.07694
}

Semantic roles & 50–950 ramp

primary
#7D1C9F
secondary
#70C453
accent
#ED3B69
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7D1C9F

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

Preview Lab → · Contrast checker → · Palette generator →

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