#7D1C81#7D1C81

#7D1C81 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.1% C 0.174 H 326.3°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#7D1C81
RGBrgb(125, 28, 129)
HSLhsl(298, 64%, 31%)
HSVhsv(298, 78%, 51%)
CMYKcmyk(3.1%, 78.3%, 0%, 49.4%)
CIE-LABlab(31.29, 52.67, -34.74)
CIE-LCHlch(31.29, 63.10, 326.60°)
OKLaboklab(43.07% 0.1449 -0.0966)
OKLCHoklch(43.07% 0.174 326.3)
XYZxyz(12.8349, 6.7764, 21.3966)
Luminance0.0678 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1C81 #20811C
analogous
#4A1C81 #7D1C81 #811C52
triadic
#7D1C81 #817D1C #1C817D
tetradic
#7D1C81 #814A1C #20811C #1C5281
square
#7D1C81 #814A1C #20811C #1C5281
split-complementary
#7D1C81 #52811C #1C814A
monochromatic
#1C061C #4C114F #7D1C81 #AE27B3 #D042D6

Accessibility & contrast

On white

8.92
#7D1C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#7D1C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1C81
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1C81#FFFFFF#000000##FFFFFF
##7D1C811.008.922.368.92
#FFFFFF8.921.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004284
Deuteranopia (green-blind)
#354E7F
Tritanopia (blue-blind)
#802E4E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7d1c81;
/* rgb */ color: rgb(125, 28, 129);
/* oklch */ color: oklch(43.1% 0.174 326.3);
Tailwind
colors: {
  custom: {
    50: '#a664a6',
    500: '#7d1c81',
    950: '#000000',
  },
}
SCSS
$custom: #7d1c81;
$custom-light: #a664a6;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1c81",
  "rgb": {
    "r": 125,
    "g": 28,
    "b": 129
  },
  "hsl": {
    "h": 297.624,
    "s": 64.331,
    "l": 30.784
  },
  "oklch": {
    "l": 0.43073,
    "c": 0.17417,
    "h": 326.3
  },
  "luminance": 0.06775
}

Semantic roles & 50–950 ramp

primary
#7D1C81
secondary
#49B444
accent
#E74047
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D1C81

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

Preview Lab → · Contrast checker → · Palette generator →

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