#7D1E7A#7D1E7A

#7D1E7A is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.8% C 0.166 H 329.4°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#7D1E7A
RGBrgb(125, 30, 122)
HSLhsl(302, 61%, 30%)
HSVhsv(302, 76%, 49%)
CMYKcmyk(0%, 76%, 2.4%, 51%)
CIE-LABlab(31.10, 50.80, -30.64)
CIE-LCHlch(31.10, 59.33, 328.90°)
OKLaboklab(42.8% 0.1432 -0.0847)
OKLCHoklch(42.8% 0.166 329.4)
XYZxyz(12.4345, 6.6946, 19.0459)
Luminance0.0669 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1E7A #1E7D21
analogous
#501E7D #7D1E7A #7D1E4A
triadic
#7D1E7A #7A7D1E #1E7A7D
tetradic
#7D1E7A #7D501E #1E7D21 #1E4A7D
square
#7D1E7A #7D501E #1E7D21 #1E4A7D
split-complementary
#7D1E7A #4A7D1E #1E7D50
monochromatic
#1A061A #4C124A #7D1E7A #AE2AAA #D243CD

Accessibility & contrast

On white

8.98
#7D1E7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#7D1E7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1E7A
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1E7A#FFFFFF#000000##FFFFFF
##7D1E7A1.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10417D
Deuteranopia (green-blind)
#3A4E78
Tritanopia (blue-blind)
#822C4A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7d1e7a;
/* rgb */ color: rgb(125, 30, 122);
/* oklch */ color: oklch(42.8% 0.166 329.4);
Tailwind
colors: {
  custom: {
    50: '#a665a1',
    500: '#7d1e7a',
    950: '#000000',
  },
}
SCSS
$custom: #7d1e7a;
$custom-light: #a665a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1e7a",
  "rgb": {
    "r": 125,
    "g": 30,
    "b": 122
  },
  "hsl": {
    "h": 301.895,
    "s": 61.29,
    "l": 30.392
  },
  "oklch": {
    "l": 0.42801,
    "c": 0.16638,
    "h": 329.4
  },
  "luminance": 0.06694
}

Semantic roles & 50–950 ramp

primary
#7D1E7A
secondary
#46B04A
accent
#E44843
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7D1E7A

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

Preview Lab → · Contrast checker → · Palette generator →

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