#7D1172#7D1172

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

Color values

HEX#7D1172
RGBrgb(125, 17, 114)
HSLhsl(306, 76%, 28%)
HSVhsv(306, 86%, 49%)
CMYKcmyk(0%, 86.4%, 8.8%, 51%)
CIE-LABlab(29.35, 53.20, -28.33)
CIE-LCHlch(29.35, 60.27, 331.96°)
OKLaboklab(41.4% 0.1538 -0.0779)
OKLCHoklch(41.4% 0.172 333.1)
XYZxyz(11.6953, 5.9768, 16.4540)
Luminance0.0598 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1172 #117D1C
analogous
#52117D #7D1172 #7D113C
triadic
#7D1172 #727D11 #11727D
tetradic
#7D1172 #7D5211 #117D1C #113C7D
square
#7D1172 #7D5211 #117D1C #113C7D
split-complementary
#7D1172 #3C7D11 #117D52
monochromatic
#1B0419 #470A41 #7D1172 #B318A3 #E227CF

Accessibility & contrast

On white

9.57
#7D1172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#7D1172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1172
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1172#FFFFFF#000000##FFFFFF
##7D11721.009.572.209.57
#FFFFFF9.571.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#093C74
Deuteranopia (green-blind)
#3A4A70
Tritanopia (blue-blind)
#831F43
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7d1172;
/* rgb */ color: rgb(125, 17, 114);
/* oklch */ color: oklch(41.4% 0.172 333.1);
Tailwind
colors: {
  custom: {
    50: '#a6609b',
    500: '#7d1172',
    950: '#000000',
  },
}
SCSS
$custom: #7d1172;
$custom-light: #a6609b;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1172",
  "rgb": {
    "r": 125,
    "g": 17,
    "b": 114
  },
  "hsl": {
    "h": 306.111,
    "s": 76.056,
    "l": 27.843
  },
  "oklch": {
    "l": 0.41405,
    "c": 0.17246,
    "h": 333.1
  },
  "luminance": 0.05976
}

Semantic roles & 50–950 ramp

primary
#7D1172
secondary
#37B343
accent
#F34835
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10050E
muted
#7F7A7E

Preview Lab

Preview with #7D1172

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

Preview Lab → · Contrast checker → · Palette generator →

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