#7D176F#7D176F

#7D176F is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.6% C 0.165 H 334.6°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#7D176F
RGBrgb(125, 23, 111)
HSLhsl(308, 69%, 29%)
HSVhsv(308, 82%, 49%)
CMYKcmyk(0%, 81.6%, 11.2%, 51%)
CIE-LABlab(29.72, 51.19, -25.84)
CIE-LCHlch(29.72, 57.35, 333.22°)
OKLaboklab(41.61% 0.1492 -0.0708)
OKLCHoklch(41.61% 0.165 334.6)
XYZxyz(11.6332, 6.1215, 15.6047)
Luminance0.0612 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D176F #177D25
analogous
#58177D #7D176F #7D173C
triadic
#7D176F #6F7D17 #176F7D
tetradic
#7D176F #7D5817 #177D25 #173C7D
square
#7D176F #7D5817 #177D25 #173C7D
split-complementary
#7D176F #3C7D17 #177D58
monochromatic
#1A0517 #490D41 #7D176F #B1219D #DA35C3

Accessibility & contrast

On white

9.44
#7D176F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#7D176F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D176F
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D176F#FFFFFF#000000##FFFFFF
##7D176F1.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153D71
Deuteranopia (green-blind)
#3D4B6D
Tritanopia (blue-blind)
#832142
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7d176f;
/* rgb */ color: rgb(125, 23, 111);
/* oklch */ color: oklch(41.6% 0.165 334.6);
Tailwind
colors: {
  custom: {
    50: '#a66298',
    500: '#7d176f',
    950: '#000000',
  },
}
SCSS
$custom: #7d176f;
$custom-light: #a66298;
$custom-dark: #000000;
JSON
{
  "hex": "#7d176f",
  "rgb": {
    "r": 125,
    "g": 23,
    "b": 111
  },
  "hsl": {
    "h": 308.235,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.41609,
    "c": 0.16516,
    "h": 334.6
  },
  "luminance": 0.0612
}

Semantic roles & 50–950 ramp

primary
#7D176F
secondary
#3EB24E
accent
#EC543C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7D176F

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

Preview Lab → · Contrast checker → · Palette generator →

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