#7D1F7D#7D1F7D

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

Color values

HEX#7D1F7D
RGBrgb(125, 31, 125)
HSLhsl(300, 60%, 31%)
HSVhsv(300, 75%, 49%)
CMYKcmyk(0%, 75.2%, 0%, 51%)
CIE-LABlab(31.40, 50.98, -32.06)
CIE-LCHlch(31.40, 60.22, 327.83°)
OKLaboklab(43.07% 0.1422 -0.0888)
OKLCHoklch(43.07% 0.168 328)
XYZxyz(12.6489, 6.8215, 20.0485)
Luminance0.0682 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1F7D #1F7D1F
analogous
#4E1F7D #7D1F7D #7D1F4E
triadic
#7D1F7D #7D7D1F #1F7D7D
tetradic
#7D1F7D #7D4E1F #1F7D1F #1F4E7D
square
#7D1F7D #7D4E1F #1F7D1F #1F4E7D
split-complementary
#7D1F7D #4E7D1F #1F7D4E
monochromatic
#1B071B #4C134C #7D1F7D #AE2BAE #D145D1

Accessibility & contrast

On white

8.88
#7D1F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D1F7D
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1F7D#FFFFFF#000000##FFFFFF
##7D1F7D1.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C4280
Deuteranopia (green-blind)
#394E7B
Tritanopia (blue-blind)
#812E4C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7d1f7d;
/* rgb */ color: rgb(125, 31, 125);
/* oklch */ color: oklch(43.1% 0.168 328.0);
Tailwind
colors: {
  custom: {
    50: '#a665a3',
    500: '#7d1f7d',
    950: '#000000',
  },
}
SCSS
$custom: #7d1f7d;
$custom-light: #a665a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1f7d",
  "rgb": {
    "r": 125,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 300,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.4307,
    "c": 0.16769,
    "h": 328
  },
  "luminance": 0.06821
}

Semantic roles & 50–950 ramp

primary
#7D1F7D
secondary
#48B048
accent
#E34444
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D1F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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