#7D1F7C#7D1F7C

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

Color values

HEX#7D1F7C
RGBrgb(125, 31, 124)
HSLhsl(301, 60%, 31%)
HSVhsv(301, 75%, 49%)
CMYKcmyk(0%, 75.2%, 0.8%, 51%)
CIE-LABlab(31.34, 50.80, -31.53)
CIE-LCHlch(31.34, 59.79, 328.18°)
OKLaboklab(43.01% 0.1422 -0.0873)
OKLCHoklch(43.01% 0.167 328.5)
XYZxyz(12.5854, 6.7961, 19.7138)
Luminance0.0679 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1F7C #1F7D20
analogous
#4F1F7D #7D1F7C #7D1F4D
triadic
#7D1F7C #7C7D1F #1F7C7D
tetradic
#7D1F7C #7D4F1F #1F7D20 #1F4D7D
square
#7D1F7C #7D4F1F #1F7D20 #1F4D7D
split-complementary
#7D1F7C #4D7D1F #1F7D4F
monochromatic
#1B071B #4C134B #7D1F7C #AE2BAD #D145CF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D1F7C#FFFFFF#000000##FFFFFF
##7D1F7C1.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)
#0E427F
Deuteranopia (green-blind)
#394E7A
Tritanopia (blue-blind)
#812D4C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7d1f7c;
/* rgb */ color: rgb(125, 31, 124);
/* oklch */ color: oklch(43.0% 0.167 328.5);
Tailwind
colors: {
  custom: {
    50: '#a665a2',
    500: '#7d1f7c',
    950: '#000000',
  },
}
SCSS
$custom: #7d1f7c;
$custom-light: #a665a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1f7c",
  "rgb": {
    "r": 125,
    "g": 31,
    "b": 124
  },
  "hsl": {
    "h": 300.638,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.43009,
    "c": 0.16687,
    "h": 328.5
  },
  "luminance": 0.06795
}

Semantic roles & 50–950 ramp

primary
#7D1F7C
secondary
#48B049
accent
#E34644
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D1F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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