#7C176C#7C176C

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

Color values

HEX#7C176C
RGBrgb(124, 23, 108)
HSLhsl(310, 69%, 29%)
HSVhsv(310, 81%, 49%)
CMYKcmyk(0%, 81.5%, 12.9%, 51.4%)
CIE-LABlab(29.37, 50.50, -24.48)
CIE-LCHlch(29.37, 56.12, 334.14°)
OKLaboklab(41.27% 0.148 -0.0669)
OKLCHoklch(41.27% 0.162 335.7)
XYZxyz(11.3255, 5.9816, 14.7426)
Luminance0.0598 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C176C #177C27
analogous
#5A177C #7C176C #7C173A
triadic
#7C176C #6C7C17 #176C7C
tetradic
#7C176C #7C5A17 #177C27 #173A7C
square
#7C176C #7C5A17 #177C27 #173A7C
split-complementary
#7C176C #3A7C17 #177C5A
monochromatic
#1A0516 #480D3F #7C176C #B02199 #D934BF

Accessibility & contrast

On white

9.56
#7C176C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C176C
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C176C#FFFFFF#000000##FFFFFF
##7C176C1.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183C6E
Deuteranopia (green-blind)
#3D4A6A
Tritanopia (blue-blind)
#832041
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7c176c;
/* rgb */ color: rgb(124, 23, 108);
/* oklch */ color: oklch(41.3% 0.162 335.7);
Tailwind
colors: {
  custom: {
    50: '#a56196',
    500: '#7c176c',
    950: '#000000',
  },
}
SCSS
$custom: #7c176c;
$custom-light: #a56196;
$custom-dark: #000000;
JSON
{
  "hex": "#7c176c",
  "rgb": {
    "r": 124,
    "g": 23,
    "b": 108
  },
  "hsl": {
    "h": 309.505,
    "s": 68.707,
    "l": 28.824
  },
  "oklch": {
    "l": 0.4127,
    "c": 0.16242,
    "h": 335.7
  },
  "luminance": 0.05981
}

Semantic roles & 50–950 ramp

primary
#7C176C
secondary
#3EB150
accent
#EC583C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7C176C

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

Preview Lab → · Contrast checker → · Palette generator →

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