#7C176D#7C176D

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

Color values

HEX#7C176D
RGBrgb(124, 23, 109)
HSLhsl(309, 69%, 29%)
HSVhsv(309, 81%, 49%)
CMYKcmyk(0%, 81.5%, 12.1%, 51.4%)
CIE-LABlab(29.42, 50.65, -25.04)
CIE-LCHlch(29.42, 56.50, 333.70°)
OKLaboklab(41.33% 0.1481 -0.0685)
OKLCHoklch(41.33% 0.163 335.2)
XYZxyz(11.3791, 6.0031, 15.0244)
Luminance0.0600 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C176D #177C26
analogous
#59177C #7C176D #7C173B
triadic
#7C176D #6D7C17 #176D7C
tetradic
#7C176D #7C5917 #177C26 #173B7C
square
#7C176D #7C5917 #177C26 #173B7C
split-complementary
#7C176D #3B7C17 #177C59
monochromatic
#1A0517 #480D40 #7C176D #B0219A #D934C1

Accessibility & contrast

On white

9.54
#7C176D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C176D
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C176D#FFFFFF#000000##FFFFFF
##7C176D1.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173C6F
Deuteranopia (green-blind)
#3D4B6B
Tritanopia (blue-blind)
#822041
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7c176d;
/* rgb */ color: rgb(124, 23, 109);
/* oklch */ color: oklch(41.3% 0.163 335.2);
Tailwind
colors: {
  custom: {
    50: '#a56297',
    500: '#7c176d',
    950: '#000000',
  },
}
SCSS
$custom: #7c176d;
$custom-light: #a56297;
$custom-dark: #000000;
JSON
{
  "hex": "#7c176d",
  "rgb": {
    "r": 124,
    "g": 23,
    "b": 109
  },
  "hsl": {
    "h": 308.911,
    "s": 68.707,
    "l": 28.824
  },
  "oklch": {
    "l": 0.41326,
    "c": 0.16315,
    "h": 335.2
  },
  "luminance": 0.06002
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7C176D

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

Preview Lab → · Contrast checker → · Palette generator →

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