#7C178F#7C178F

#7C178F is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.5% C 0.190 H 320.4°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#7C178F
RGBrgb(124, 23, 143)
HSLhsl(291, 72%, 33%)
HSVhsv(291, 84%, 56%)
CMYKcmyk(13.3%, 83.9%, 0%, 43.9%)
CIE-LABlab(31.54, 56.47, -43.06)
CIE-LCHlch(31.54, 71.01, 322.67°)
OKLaboklab(43.51% 0.1463 -0.1209)
OKLCHoklch(43.51% 0.19 320.4)
XYZxyz(13.5759, 6.8818, 26.5945)
Luminance0.0688 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C178F #2A8F17
analogous
#40178F #7C178F #8F1766
triadic
#7C178F #8F7C17 #178F7C
tetradic
#7C178F #8F4017 #2A8F17 #17668F
square
#7C178F #8F4017 #2A8F17 #17668F
split-complementary
#7C178F #668F17 #178F40
monochromatic
#210626 #4E0F5A #7C178F #AA1FC4 #C740E0

Accessibility & contrast

On white

8.84
#7C178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#7C178F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C178F
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C178F#FFFFFF#000000##FFFFFF
##7C178F1.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004492
Deuteranopia (green-blind)
#254E8C
Tritanopia (blue-blind)
#7C3355
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7c178f;
/* rgb */ color: rgb(124, 23, 143);
/* oklch */ color: oklch(43.5% 0.190 320.4);
Tailwind
colors: {
  custom: {
    50: '#a663b0',
    500: '#7c178f',
    950: '#000000',
  },
}
SCSS
$custom: #7c178f;
$custom-light: #a663b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c178f",
  "rgb": {
    "r": 124,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 290.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.43506,
    "c": 0.1898,
    "h": 320.4
  },
  "luminance": 0.06881
}

Semantic roles & 50–950 ramp

primary
#7C178F
secondary
#55C141
accent
#EF3956
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7C178F

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

Preview Lab → · Contrast checker → · Palette generator →

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