#7D1A78#7D1A78

#7D1A78 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.4% C 0.169 H 330.3°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#7D1A78
RGBrgb(125, 26, 120)
HSLhsl(303, 66%, 30%)
HSVhsv(303, 79%, 49%)
CMYKcmyk(0%, 79.2%, 4%, 51%)
CIE-LABlab(30.53, 51.76, -30.28)
CIE-LCHlch(30.53, 59.96, 329.67°)
OKLaboklab(42.36% 0.1469 -0.0836)
OKLCHoklch(42.36% 0.169 330.3)
XYZxyz(12.2170, 6.4558, 18.3683)
Luminance0.0645 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1A78 #1A7D1F
analogous
#501A7D #7D1A78 #7D1A47
triadic
#7D1A78 #787D1A #1A787D
tetradic
#7D1A78 #7D501A #1A7D1F #1A477D
square
#7D1A78 #7D501A #1A7D1F #1A477D
split-complementary
#7D1A78 #477D1A #1A7D50
monochromatic
#190518 #4A0F47 #7D1A78 #B025A9 #D63BCE

Accessibility & contrast

On white

9.17
#7D1A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#7D1A78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1A78
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1A78#FFFFFF#000000##FFFFFF
##7D1A781.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C3F7A
Deuteranopia (green-blind)
#394D76
Tritanopia (blue-blind)
#822848
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7d1a78;
/* rgb */ color: rgb(125, 26, 120);
/* oklch */ color: oklch(42.4% 0.169 330.3);
Tailwind
colors: {
  custom: {
    50: '#a6639f',
    500: '#7d1a78',
    950: '#000000',
  },
}
SCSS
$custom: #7d1a78;
$custom-light: #a6639f;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1a78",
  "rgb": {
    "r": 125,
    "g": 26,
    "b": 120
  },
  "hsl": {
    "h": 303.03,
    "s": 65.563,
    "l": 29.608
  },
  "oklch": {
    "l": 0.42359,
    "c": 0.16902,
    "h": 330.3
  },
  "luminance": 0.06455
}

Semantic roles & 50–950 ramp

primary
#7D1A78
secondary
#42B147
accent
#E9483F
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7D1A78

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

Preview Lab → · Contrast checker → · Palette generator →

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