#7C177E#7C177E

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

Color values

HEX#7C177E
RGBrgb(124, 23, 126)
HSLhsl(299, 69%, 29%)
HSVhsv(299, 82%, 49%)
CMYKcmyk(1.6%, 81.7%, 0%, 50.6%)
CIE-LABlab(30.41, 53.43, -34.27)
CIE-LCHlch(30.41, 63.47, 327.32°)
OKLaboklab(42.35% 0.1481 -0.0952)
OKLCHoklch(42.35% 0.176 327.3)
XYZxyz(12.3843, 6.4051, 20.3187)
Luminance0.0640 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C177E #197E17
analogous
#49177E #7C177E #7E174D
triadic
#7C177E #7E7C17 #177E7C
tetradic
#7C177E #7E4917 #197E17 #174D7E
square
#7C177E #7E4917 #197E17 #174D7E
split-complementary
#7C177E #4D7E17 #177E49
monochromatic
#19051A #490E4A #7C177E #AF20B2 #D735DA

Accessibility & contrast

On white

9.21
#7C177E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C177E
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C177E#FFFFFF#000000##FFFFFF
##7C177E1.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004081
Deuteranopia (green-blind)
#344C7C
Tritanopia (blue-blind)
#802A4B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7c177e;
/* rgb */ color: rgb(124, 23, 126);
/* oklch */ color: oklch(42.4% 0.176 327.3);
Tailwind
colors: {
  custom: {
    50: '#a562a4',
    500: '#7c177e',
    950: '#000000',
  },
}
SCSS
$custom: #7c177e;
$custom-light: #a562a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7c177e",
  "rgb": {
    "r": 124,
    "g": 23,
    "b": 126
  },
  "hsl": {
    "h": 298.835,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.42354,
    "c": 0.17609,
    "h": 327.3
  },
  "luminance": 0.06404
}

Semantic roles & 50–950 ramp

primary
#7C177E
secondary
#40B33E
accent
#EC3C3F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7C177E

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

Preview Lab → · Contrast checker → · Palette generator →

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