#7D1F6E#7D1F6E

#7D1F6E is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.2% C 0.156 H 335.3°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#7D1F6E
RGBrgb(125, 31, 110)
HSLhsl(310, 60%, 31%)
HSVhsv(310, 75%, 49%)
CMYKcmyk(0%, 75.2%, 12%, 51%)
CIE-LABlab(30.56, 48.47, -23.88)
CIE-LCHlch(30.56, 54.03, 333.78°)
OKLaboklab(42.2% 0.1416 -0.0652)
OKLCHoklch(42.2% 0.156 335.3)
XYZxyz(11.7621, 6.4668, 15.3776)
Luminance0.0647 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1F6E #1F7D2E
analogous
#5D1F7D #7D1F6E #7D1F3F
triadic
#7D1F6E #6E7D1F #1F6E7D
tetradic
#7D1F6E #7D5D1F #1F7D2E #1F3F7D
square
#7D1F6E #7D5D1F #1F7D2E #1F3F7D
split-complementary
#7D1F6E #3F7D1F #1F7D5D
monochromatic
#1B0718 #4C1343 #7D1F6E #AE2B99 #D145BB

Accessibility & contrast

On white

9.16
#7D1F6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D1F6E
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1F6E#FFFFFF#000000##FFFFFF
##7D1F6E1.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F3F70
Deuteranopia (green-blind)
#404D6C
Tritanopia (blue-blind)
#832644
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7d1f6e;
/* rgb */ color: rgb(125, 31, 110);
/* oklch */ color: oklch(42.2% 0.156 335.3);
Tailwind
colors: {
  custom: {
    50: '#a66598',
    500: '#7d1f6e',
    950: '#000000',
  },
}
SCSS
$custom: #7d1f6e;
$custom-light: #a66598;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1f6e",
  "rgb": {
    "r": 125,
    "g": 31,
    "b": 110
  },
  "hsl": {
    "h": 309.574,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.42198,
    "c": 0.15584,
    "h": 335.3
  },
  "luminance": 0.06466
}

Semantic roles & 50–950 ramp

primary
#7D1F6E
secondary
#48B058
accent
#E35E44
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7D1F6E

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

Preview Lab → · Contrast checker → · Palette generator →

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