#7C177D#7C177D

#7C177D is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.3% C 0.175 H 327.7°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#7C177D
RGBrgb(124, 23, 125)
HSLhsl(299, 69%, 29%)
HSVhsv(299, 82%, 49%)
CMYKcmyk(0.8%, 81.6%, 0%, 51%)
CIE-LABlab(30.35, 53.26, -33.74)
CIE-LCHlch(30.35, 63.04, 327.65°)
OKLaboklab(42.29% 0.1482 -0.0937)
OKLCHoklch(42.29% 0.175 327.7)
XYZxyz(12.3201, 6.3795, 19.9805)
Luminance0.0638 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C177D #187D17
analogous
#49177D #7C177D #7D174B
triadic
#7C177D #7D7C17 #177D7C
tetradic
#7C177D #7D4917 #187D17 #174B7D
square
#7C177D #7D4917 #187D17 #174B7D
split-complementary
#7C177D #4B7D17 #177D49
monochromatic
#1A051A #490D49 #7C177D #AF21B1 #D835DA

Accessibility & contrast

On white

9.23
#7C177D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#7C177D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C177D
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C177D#FFFFFF#000000##FFFFFF
##7C177D1.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F80
Deuteranopia (green-blind)
#344C7B
Tritanopia (blue-blind)
#80294A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7c177d;
/* rgb */ color: rgb(124, 23, 125);
/* oklch */ color: oklch(42.3% 0.175 327.7);
Tailwind
colors: {
  custom: {
    50: '#a562a3',
    500: '#7c177d',
    950: '#000000',
  },
}
SCSS
$custom: #7c177d;
$custom-light: #a562a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7c177d",
  "rgb": {
    "r": 124,
    "g": 23,
    "b": 125
  },
  "hsl": {
    "h": 299.412,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.4229,
    "c": 0.1753,
    "h": 327.7
  },
  "luminance": 0.06379
}

Semantic roles & 50–950 ramp

primary
#7C177D
secondary
#3FB23E
accent
#EC3C3E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7C177D

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

Preview Lab → · Contrast checker → · Palette generator →

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