#7C176E#7C176E

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

Color values

HEX#7C176E
RGBrgb(124, 23, 110)
HSLhsl(308, 69%, 29%)
HSVhsv(308, 81%, 49%)
CMYKcmyk(0%, 81.5%, 11.3%, 51.4%)
CIE-LABlab(29.47, 50.81, -25.59)
CIE-LCHlch(29.47, 56.89, 333.26°)
OKLaboklab(41.38% 0.1481 -0.0701)
OKLCHoklch(41.38% 0.164 334.7)
XYZxyz(11.4332, 6.0247, 15.3096)
Luminance0.0602 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C176E #177C25
analogous
#58177C #7C176E #7C173C
triadic
#7C176E #6E7C17 #176E7C
tetradic
#7C176E #7C5817 #177C25 #173C7C
square
#7C176E #7C5817 #177C25 #173C7C
split-complementary
#7C176E #3C7C17 #177C58
monochromatic
#1A0517 #480D40 #7C176E #B0219C #D934C2

Accessibility & contrast

On white

9.52
#7C176E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C176E
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C176E#FFFFFF#000000##FFFFFF
##7C176E1.009.522.209.52
#FFFFFF9.521.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163C70
Deuteranopia (green-blind)
#3C4B6C
Tritanopia (blue-blind)
#822142
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7c176e;
/* rgb */ color: rgb(124, 23, 110);
/* oklch */ color: oklch(41.4% 0.164 334.7);
Tailwind
colors: {
  custom: {
    50: '#a56298',
    500: '#7c176e',
    950: '#000000',
  },
}
SCSS
$custom: #7c176e;
$custom-light: #a56298;
$custom-dark: #000000;
JSON
{
  "hex": "#7c176e",
  "rgb": {
    "r": 124,
    "g": 23,
    "b": 110
  },
  "hsl": {
    "h": 308.317,
    "s": 68.707,
    "l": 28.824
  },
  "oklch": {
    "l": 0.41383,
    "c": 0.16388,
    "h": 334.7
  },
  "luminance": 0.06024
}

Semantic roles & 50–950 ramp

primary
#7C176E
secondary
#3EB14E
accent
#EC553C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7C176E

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

Preview Lab → · Contrast checker → · Palette generator →

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