#7D1F78#7D1F78

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

Color values

HEX#7D1F78
RGBrgb(125, 31, 120)
HSLhsl(303, 60%, 31%)
HSVhsv(303, 75%, 49%)
CMYKcmyk(0%, 75.2%, 4%, 51%)
CIE-LABlab(31.11, 50.12, -29.37)
CIE-LCHlch(31.11, 58.09, 329.63°)
OKLaboklab(42.77% 0.1422 -0.081)
OKLCHoklch(42.77% 0.164 330.3)
XYZxyz(12.3375, 6.6970, 18.4085)
Luminance0.0670 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1F78 #1F7D24
analogous
#531F7D #7D1F78 #7D1F49
triadic
#7D1F78 #787D1F #1F787D
tetradic
#7D1F78 #7D531F #1F7D24 #1F497D
square
#7D1F78 #7D531F #1F7D24 #1F497D
split-complementary
#7D1F78 #497D1F #1F7D53
monochromatic
#1B071A #4C1349 #7D1F78 #AE2BA7 #D145CA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D1F78#FFFFFF#000000##FFFFFF
##7D1F781.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)
#14417A
Deuteranopia (green-blind)
#3B4E76
Tritanopia (blue-blind)
#822B49
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7d1f78;
/* rgb */ color: rgb(125, 31, 120);
/* oklch */ color: oklch(42.8% 0.164 330.3);
Tailwind
colors: {
  custom: {
    50: '#a6659f',
    500: '#7d1f78',
    950: '#000000',
  },
}
SCSS
$custom: #7d1f78;
$custom-light: #a6659f;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1f78",
  "rgb": {
    "r": 125,
    "g": 31,
    "b": 120
  },
  "hsl": {
    "h": 303.191,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.42768,
    "c": 0.16364,
    "h": 330.3
  },
  "luminance": 0.06696
}

Semantic roles & 50–950 ramp

primary
#7D1F78
secondary
#48B04D
accent
#E34D44
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7D1F78

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

Preview Lab → · Contrast checker → · Palette generator →

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