#7D1C82#7D1C82

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

Color values

HEX#7D1C82
RGBrgb(125, 28, 130)
HSLhsl(297, 65%, 31%)
HSVhsv(297, 78%, 51%)
CMYKcmyk(3.8%, 78.5%, 0%, 49%)
CIE-LABlab(31.35, 52.85, -35.26)
CIE-LCHlch(31.35, 63.54, 326.29°)
OKLaboklab(43.14% 0.1449 -0.0981)
OKLCHoklch(43.14% 0.175 325.9)
XYZxyz(12.9017, 6.8031, 21.7484)
Luminance0.0680 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1C82 #21821C
analogous
#4A1C82 #7D1C82 #821C54
triadic
#7D1C82 #827D1C #1C827D
tetradic
#7D1C82 #824A1C #21821C #1C5482
square
#7D1C82 #824A1C #21821C #1C5482
split-complementary
#7D1C82 #54821C #1C824A
monochromatic
#1C061D #4D1150 #7D1C82 #AD27B4 #CF42D6

Accessibility & contrast

On white

8.90
#7D1C82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D1C82
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1C82#FFFFFF#000000##FFFFFF
##7D1C821.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004285
Deuteranopia (green-blind)
#344E80
Tritanopia (blue-blind)
#802E4E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7d1c82;
/* rgb */ color: rgb(125, 28, 130);
/* oklch */ color: oklch(43.1% 0.175 325.9);
Tailwind
colors: {
  custom: {
    50: '#a664a7',
    500: '#7d1c82',
    950: '#000000',
  },
}
SCSS
$custom: #7d1c82;
$custom-light: #a664a7;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1c82",
  "rgb": {
    "r": 125,
    "g": 28,
    "b": 130
  },
  "hsl": {
    "h": 297.059,
    "s": 64.557,
    "l": 30.98
  },
  "oklch": {
    "l": 0.43137,
    "c": 0.17498,
    "h": 325.9
  },
  "luminance": 0.06802
}

Semantic roles & 50–950 ramp

primary
#7D1C82
secondary
#4AB544
accent
#E84048
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D1C82

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

Preview Lab → · Contrast checker → · Palette generator →

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