#7C177F#7C177F

#7C177F is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.4% C 0.177 H 326.8°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#7C177F
RGBrgb(124, 23, 127)
HSLhsl(298, 69%, 29%)
HSVhsv(298, 82%, 50%)
CMYKcmyk(2.4%, 81.9%, 0%, 50.2%)
CIE-LABlab(30.48, 53.60, -34.80)
CIE-LCHlch(30.48, 63.91, 327.01°)
OKLaboklab(42.42% 0.1481 -0.0968)
OKLCHoklch(42.42% 0.177 326.8)
XYZxyz(12.4491, 6.4311, 20.6602)
Luminance0.0643 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C177F #1A7F17
analogous
#48177F #7C177F #7F174E
triadic
#7C177F #7F7C17 #177F7C
tetradic
#7C177F #7F4817 #1A7F17 #174E7F
square
#7C177F #7F4817 #1A7F17 #174E7F
split-complementary
#7C177F #4E7F17 #177F48
monochromatic
#19051A #490E4B #7C177F #AF20B3 #D636DB

Accessibility & contrast

On white

9.19
#7C177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#7C177F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C177F
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C177F#FFFFFF#000000##FFFFFF
##7C177F1.009.192.299.19
#FFFFFF9.191.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004082
Deuteranopia (green-blind)
#334C7D
Tritanopia (blue-blind)
#802A4C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7c177f;
/* rgb */ color: rgb(124, 23, 127);
/* oklch */ color: oklch(42.4% 0.177 326.8);
Tailwind
colors: {
  custom: {
    50: '#a662a4',
    500: '#7c177f',
    950: '#000000',
  },
}
SCSS
$custom: #7c177f;
$custom-light: #a662a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7c177f",
  "rgb": {
    "r": 124,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 298.269,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.42418,
    "c": 0.17688,
    "h": 326.8
  },
  "luminance": 0.0643
}

Semantic roles & 50–950 ramp

primary
#7C177F
secondary
#42B43E
accent
#EC3C41
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7C177F

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

Preview Lab → · Contrast checker → · Palette generator →

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