#7C176F#7C176F

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

Color values

HEX#7C176F
RGBrgb(124, 23, 111)
HSLhsl(308, 69%, 29%)
HSVhsv(308, 81%, 49%)
CMYKcmyk(0%, 81.5%, 10.5%, 51.4%)
CIE-LABlab(29.53, 50.96, -26.15)
CIE-LCHlch(29.53, 57.28, 332.84°)
OKLaboklab(41.44% 0.1482 -0.0717)
OKLCHoklch(41.44% 0.165 334.2)
XYZxyz(11.4879, 6.0466, 15.5979)
Luminance0.0605 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C176F #177C24
analogous
#57177C #7C176F #7C173D
triadic
#7C176F #6F7C17 #176F7C
tetradic
#7C176F #7C5717 #177C24 #173D7C
square
#7C176F #7C5717 #177C24 #173D7C
split-complementary
#7C176F #3D7C17 #177C57
monochromatic
#1A0517 #480D41 #7C176F #B0219D #D934C4

Accessibility & contrast

On white

9.51
#7C176F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#7C176F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C176F
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C176F#FFFFFF#000000##FFFFFF
##7C176F1.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143C71
Deuteranopia (green-blind)
#3C4B6D
Tritanopia (blue-blind)
#822242
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7c176f;
/* rgb */ color: rgb(124, 23, 111);
/* oklch */ color: oklch(41.4% 0.165 334.2);
Tailwind
colors: {
  custom: {
    50: '#a56298',
    500: '#7c176f',
    950: '#000000',
  },
}
SCSS
$custom: #7c176f;
$custom-light: #a56298;
$custom-dark: #000000;
JSON
{
  "hex": "#7c176f",
  "rgb": {
    "r": 124,
    "g": 23,
    "b": 111
  },
  "hsl": {
    "h": 307.723,
    "s": 68.707,
    "l": 28.824
  },
  "oklch": {
    "l": 0.4144,
    "c": 0.16462,
    "h": 334.2
  },
  "luminance": 0.06046
}

Semantic roles & 50–950 ramp

primary
#7C176F
secondary
#3EB14D
accent
#EC533C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7C176F

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

Preview Lab → · Contrast checker → · Palette generator →

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