#7D1F71#7D1F71

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

Color values

HEX#7D1F71
RGBrgb(125, 31, 113)
HSLhsl(308, 60%, 31%)
HSVhsv(308, 75%, 49%)
CMYKcmyk(0%, 75.2%, 9.6%, 51%)
CIE-LABlab(30.72, 48.95, -25.54)
CIE-LCHlch(30.72, 55.22, 332.45°)
OKLaboklab(42.37% 0.1418 -0.07)
OKLCHoklch(42.37% 0.158 333.7)
XYZxyz(11.9282, 6.5332, 16.2524)
Luminance0.0653 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1F71 #1F7D2B
analogous
#5A1F7D #7D1F71 #7D1F42
triadic
#7D1F71 #717D1F #1F717D
tetradic
#7D1F71 #7D5A1F #1F7D2B #1F427D
square
#7D1F71 #7D5A1F #1F7D2B #1F427D
split-complementary
#7D1F71 #427D1F #1F7D5A
monochromatic
#1B0718 #4C1345 #7D1F71 #AE2B9D #D145BF

Accessibility & contrast

On white

9.11
#7D1F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#7D1F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1F71
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1F71#FFFFFF#000000##FFFFFF
##7D1F711.009.112.319.11
#FFFFFF9.111.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4073
Deuteranopia (green-blind)
#3F4D6F
Tritanopia (blue-blind)
#832846
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7d1f71;
/* rgb */ color: rgb(125, 31, 113);
/* oklch */ color: oklch(42.4% 0.158 333.7);
Tailwind
colors: {
  custom: {
    50: '#a6659a',
    500: '#7d1f71',
    950: '#000000',
  },
}
SCSS
$custom: #7d1f71;
$custom-light: #a6659a;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1f71",
  "rgb": {
    "r": 125,
    "g": 31,
    "b": 113
  },
  "hsl": {
    "h": 307.66,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.42365,
    "c": 0.15814,
    "h": 333.7
  },
  "luminance": 0.06532
}

Semantic roles & 50–950 ramp

primary
#7D1F71
secondary
#48B055
accent
#E35944
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7D1F71

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

Preview Lab → · Contrast checker → · Palette generator →

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