#7D1A7C#7D1A7C

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

Color values

HEX#7D1A7C
RGBrgb(125, 26, 124)
HSLhsl(301, 66%, 30%)
HSVhsv(301, 79%, 49%)
CMYKcmyk(0%, 79.2%, 0.8%, 51%)
CIE-LABlab(30.77, 52.43, -32.43)
CIE-LCHlch(30.77, 61.65, 328.26°)
OKLaboklab(42.6% 0.1469 -0.0899)
OKLCHoklch(42.6% 0.172 328.5)
XYZxyz(12.4648, 6.5549, 19.6736)
Luminance0.0655 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1A7C #1A7D1B
analogous
#4D1A7D #7D1A7C #7D1A4B
triadic
#7D1A7C #7C7D1A #1A7C7D
tetradic
#7D1A7C #7D4D1A #1A7D1B #1A4B7D
square
#7D1A7C #7D4D1A #1A7D1B #1A4B7D
split-complementary
#7D1A7C #4B7D1A #1A7D4D
monochromatic
#190519 #4A0F4A #7D1A7C #B025AE #D63BD5

Accessibility & contrast

On white

9.09
#7D1A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D1A7C
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1A7C#FFFFFF#000000##FFFFFF
##7D1A7C1.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03407F
Deuteranopia (green-blind)
#374D7A
Tritanopia (blue-blind)
#812A4A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7d1a7c;
/* rgb */ color: rgb(125, 26, 124);
/* oklch */ color: oklch(42.6% 0.172 328.5);
Tailwind
colors: {
  custom: {
    50: '#a663a2',
    500: '#7d1a7c',
    950: '#000000',
  },
}
SCSS
$custom: #7d1a7c;
$custom-light: #a663a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1a7c",
  "rgb": {
    "r": 125,
    "g": 26,
    "b": 124
  },
  "hsl": {
    "h": 300.606,
    "s": 65.563,
    "l": 29.608
  },
  "oklch": {
    "l": 0.42604,
    "c": 0.17216,
    "h": 328.5
  },
  "luminance": 0.06554
}

Semantic roles & 50–950 ramp

primary
#7D1A7C
secondary
#42B143
accent
#E9413F
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D1A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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