#7D1D87#7D1D87

#7D1D87 is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.5% C 0.178 H 323.8°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#7D1D87
RGBrgb(125, 29, 135)
HSLhsl(294, 65%, 32%)
HSVhsv(294, 79%, 53%)
CMYKcmyk(7.4%, 78.5%, 0%, 47.1%)
CIE-LABlab(31.78, 53.43, -37.70)
CIE-LCHlch(31.78, 65.39, 324.79°)
OKLaboklab(43.54% 0.1437 -0.1052)
OKLCHoklch(43.54% 0.178 323.8)
XYZxyz(13.2696, 6.9888, 23.5670)
Luminance0.0699 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1D87 #27871D
analogous
#481D87 #7D1D87 #871D5C
triadic
#7D1D87 #877D1D #1D877D
tetradic
#7D1D87 #87481D #27871D #1D5C87
square
#7D1D87 #87481D #27871D #1D5C87
split-complementary
#7D1D87 #5C871D #1D8748
monochromatic
#200722 #4E1255 #7D1D87 #AC28B9 #CA47D7

Accessibility & contrast

On white

8.76
#7D1D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#7D1D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1D87
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1D87#FFFFFF#000000##FFFFFF
##7D1D871.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448A
Deuteranopia (green-blind)
#314F85
Tritanopia (blue-blind)
#7F3151
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7d1d87;
/* rgb */ color: rgb(125, 29, 135);
/* oklch */ color: oklch(43.5% 0.178 323.8);
Tailwind
colors: {
  custom: {
    50: '#a665aa',
    500: '#7d1d87',
    950: '#000000',
  },
}
SCSS
$custom: #7d1d87;
$custom-light: #a665aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1d87",
  "rgb": {
    "r": 125,
    "g": 29,
    "b": 135
  },
  "hsl": {
    "h": 294.34,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.43542,
    "c": 0.17811,
    "h": 323.8
  },
  "luminance": 0.06988
}

Semantic roles & 50–950 ramp

primary
#7D1D87
secondary
#51B946
accent
#E84050
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7D1D87

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

Preview Lab → · Contrast checker → · Palette generator →

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