#7D1C8D#7D1C8D

#7D1C8D is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.9% C 0.184 H 321.4°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#7D1C8D
RGBrgb(125, 28, 141)
HSLhsl(292, 67%, 33%)
HSVhsv(292, 80%, 55%)
CMYKcmyk(11.3%, 80.1%, 0%, 44.7%)
CIE-LABlab(32.07, 54.85, -40.96)
CIE-LCHlch(32.07, 68.46, 323.25°)
OKLaboklab(43.87% 0.144 -0.1148)
OKLCHoklch(43.87% 0.184 321.4)
XYZxyz(13.6799, 7.1143, 25.8468)
Luminance0.0711 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1C8D #2C8D1C
analogous
#441C8D #7D1C8D #8D1C65
triadic
#7D1C8D #8D7D1C #1C8D7D
tetradic
#7D1C8D #8D441C #2C8D1C #1C658D
square
#7D1C8D #8D441C #2C8D1C #1C658D
split-complementary
#7D1C8D #658D1C #1C8D44
monochromatic
#220827 #50125A #7D1C8D #AA26C0 #C649DB

Accessibility & contrast

On white

8.67
#7D1C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#7D1C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1C8D
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1C8D#FFFFFF#000000##FFFFFF
##7D1C8D1.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004590
Deuteranopia (green-blind)
#2B4F8A
Tritanopia (blue-blind)
#7E3455
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7d1c8d;
/* rgb */ color: rgb(125, 28, 141);
/* oklch */ color: oklch(43.9% 0.184 321.4);
Tailwind
colors: {
  custom: {
    50: '#a665af',
    500: '#7d1c8d',
    950: '#000000',
  },
}
SCSS
$custom: #7d1c8d;
$custom-light: #a665af;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1c8d",
  "rgb": {
    "r": 125,
    "g": 28,
    "b": 141
  },
  "hsl": {
    "h": 291.504,
    "s": 66.864,
    "l": 33.137
  },
  "oklch": {
    "l": 0.43869,
    "c": 0.18412,
    "h": 321.4
  },
  "luminance": 0.07114
}

Semantic roles & 50–950 ramp

primary
#7D1C8D
secondary
#59BD48
accent
#EA3E56
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7D1C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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