#7D176E#7D176E

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

Color values

HEX#7D176E
RGBrgb(125, 23, 110)
HSLhsl(309, 69%, 29%)
HSVhsv(309, 82%, 49%)
CMYKcmyk(0%, 81.6%, 12%, 51%)
CIE-LABlab(29.66, 51.04, -25.29)
CIE-LCHlch(29.66, 56.96, 333.64°)
OKLaboklab(41.55% 0.1492 -0.0692)
OKLCHoklch(41.55% 0.164 335.1)
XYZxyz(11.5785, 6.0996, 15.3164)
Luminance0.0610 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D176E #177D26
analogous
#59177D #7D176E #7D173B
triadic
#7D176E #6E7D17 #176E7D
tetradic
#7D176E #7D5917 #177D26 #173B7D
square
#7D176E #7D5917 #177D26 #173B7D
split-complementary
#7D176E #3B7D17 #177D59
monochromatic
#1A0517 #490D41 #7D176E #B1219B #DA35C1

Accessibility & contrast

On white

9.46
#7D176E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D176E
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D176E#FFFFFF#000000##FFFFFF
##7D176E1.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173C70
Deuteranopia (green-blind)
#3D4B6C
Tritanopia (blue-blind)
#842142
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7d176e;
/* rgb */ color: rgb(125, 23, 110);
/* oklch */ color: oklch(41.6% 0.164 335.1);
Tailwind
colors: {
  custom: {
    50: '#a66298',
    500: '#7d176e',
    950: '#000000',
  },
}
SCSS
$custom: #7d176e;
$custom-light: #a66298;
$custom-dark: #000000;
JSON
{
  "hex": "#7d176e",
  "rgb": {
    "r": 125,
    "g": 23,
    "b": 110
  },
  "hsl": {
    "h": 308.824,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.41552,
    "c": 0.16444,
    "h": 335.1
  },
  "luminance": 0.06099
}

Semantic roles & 50–950 ramp

primary
#7D176E
secondary
#3EB24F
accent
#EC563C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7D176E

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

Preview Lab → · Contrast checker → · Palette generator →

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