#7D1171#7D1171

#7D1171 is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.3% C 0.172 H 333.6°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#7D1171
RGBrgb(125, 17, 113)
HSLhsl(307, 76%, 28%)
HSVhsv(307, 86%, 49%)
CMYKcmyk(0%, 86.4%, 9.6%, 51%)
CIE-LABlab(29.30, 53.04, -27.78)
CIE-LCHlch(29.30, 59.88, 332.36°)
OKLaboklab(41.35% 0.1538 -0.0763)
OKLCHoklch(41.35% 0.172 333.6)
XYZxyz(11.6386, 5.9542, 16.1559)
Luminance0.0595 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1171 #117D1D
analogous
#53117D #7D1171 #7D113B
triadic
#7D1171 #717D11 #11717D
tetradic
#7D1171 #7D5311 #117D1D #113B7D
square
#7D1171 #7D5311 #117D1D #113B7D
split-complementary
#7D1171 #3B7D11 #117D53
monochromatic
#1B0418 #470A40 #7D1171 #B318A2 #E227CD

Accessibility & contrast

On white

9.59
#7D1171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#7D1171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1171
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1171#FFFFFF#000000##FFFFFF
##7D11711.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B3B73
Deuteranopia (green-blind)
#3A4A6F
Tritanopia (blue-blind)
#831F42
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7d1171;
/* rgb */ color: rgb(125, 17, 113);
/* oklch */ color: oklch(41.3% 0.172 333.6);
Tailwind
colors: {
  custom: {
    50: '#a6609a',
    500: '#7d1171',
    950: '#000000',
  },
}
SCSS
$custom: #7d1171;
$custom-light: #a6609a;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1171",
  "rgb": {
    "r": 125,
    "g": 17,
    "b": 113
  },
  "hsl": {
    "h": 306.667,
    "s": 76.056,
    "l": 27.843
  },
  "oklch": {
    "l": 0.41345,
    "c": 0.17174,
    "h": 333.6
  },
  "luminance": 0.05953
}

Semantic roles & 50–950 ramp

primary
#7D1171
secondary
#37B344
accent
#F34A35
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10050E
muted
#7F7A7E

Preview Lab

Preview with #7D1171

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

Preview Lab → · Contrast checker → · Palette generator →

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