#7D1C8A#7D1C8A

#7D1C8A is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.7% C 0.182 H 322.6°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#7D1C8A
RGBrgb(125, 28, 138)
HSLhsl(293, 66%, 33%)
HSVhsv(293, 80%, 54%)
CMYKcmyk(9.4%, 79.7%, 0%, 45.9%)
CIE-LABlab(31.87, 54.29, -39.43)
CIE-LCHlch(31.87, 67.10, 324.01°)
OKLaboklab(43.67% 0.1443 -0.1103)
OKLCHoklch(43.67% 0.182 322.6)
XYZxyz(13.4597, 7.0263, 24.6871)
Luminance0.0703 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1C8A #298A1C
analogous
#461C8A #7D1C8A #8A1C60
triadic
#7D1C8A #8A7D1C #1C8A7D
tetradic
#7D1C8A #8A461C #298A1C #1C608A
square
#7D1C8A #8A461C #298A1C #1C608A
split-complementary
#7D1C8A #608A1C #1C8A46
monochromatic
#210724 #4F1257 #7D1C8A #AB26BD #C847DA

Accessibility & contrast

On white

8.73
#7D1C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#7D1C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1C8A
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1C8A#FFFFFF#000000##FFFFFF
##7D1C8A1.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448D
Deuteranopia (green-blind)
#2E4F88
Tritanopia (blue-blind)
#7F3253
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7d1c8a;
/* rgb */ color: rgb(125, 28, 138);
/* oklch */ color: oklch(43.7% 0.182 322.6);
Tailwind
colors: {
  custom: {
    50: '#a665ad',
    500: '#7d1c8a',
    950: '#000000',
  },
}
SCSS
$custom: #7d1c8a;
$custom-light: #a665ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1c8a",
  "rgb": {
    "r": 125,
    "g": 28,
    "b": 138
  },
  "hsl": {
    "h": 292.909,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.43665,
    "c": 0.1816,
    "h": 322.6
  },
  "luminance": 0.07025
}

Semantic roles & 50–950 ramp

primary
#7D1C8A
secondary
#54BB46
accent
#E93F53
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7D1C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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