#7D1A87#7D1A87

#7D1A87 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.3% C 0.181 H 323.9°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#7D1A87
RGBrgb(125, 26, 135)
HSLhsl(294, 68%, 32%)
HSVhsv(294, 81%, 53%)
CMYKcmyk(7.4%, 80.7%, 0%, 47.1%)
CIE-LABlab(31.46, 54.36, -38.21)
CIE-LCHlch(31.46, 66.44, 324.89°)
OKLaboklab(43.31% 0.1462 -0.1067)
OKLCHoklch(43.31% 0.181 323.9)
XYZxyz(13.1996, 6.8489, 23.5437)
Luminance0.0685 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1A87 #24871A
analogous
#471A87 #7D1A87 #871A5B
triadic
#7D1A87 #877D1A #1A877D
tetradic
#7D1A87 #87471A #24871A #1A5B87
square
#7D1A87 #87471A #24871A #1A5B87
split-complementary
#7D1A87 #5B871A #1A8747
monochromatic
#1E0620 #4D1054 #7D1A87 #AD24BA #CC41DA

Accessibility & contrast

On white

8.86
#7D1A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#7D1A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1A87
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1A87#FFFFFF#000000##FFFFFF
##7D1A871.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438A
Deuteranopia (green-blind)
#2F4E85
Tritanopia (blue-blind)
#7F3051
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7d1a87;
/* rgb */ color: rgb(125, 26, 135);
/* oklch */ color: oklch(43.3% 0.181 323.9);
Tailwind
colors: {
  custom: {
    50: '#a664aa',
    500: '#7d1a87',
    950: '#000000',
  },
}
SCSS
$custom: #7d1a87;
$custom-light: #a664aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1a87",
  "rgb": {
    "r": 125,
    "g": 26,
    "b": 135
  },
  "hsl": {
    "h": 294.495,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.43314,
    "c": 0.18102,
    "h": 323.9
  },
  "luminance": 0.06848
}

Semantic roles & 50–950 ramp

primary
#7D1A87
secondary
#4DBA42
accent
#EB3D4D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7D1A87

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

Preview Lab → · Contrast checker → · Palette generator →

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