#7C178E#7C178E

#7C178E is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.4% C 0.189 H 320.8°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#7C178E
RGBrgb(124, 23, 142)
HSLhsl(291, 72%, 32%)
HSVhsv(291, 84%, 56%)
CMYKcmyk(12.7%, 83.8%, 0%, 44.3%)
CIE-LABlab(31.47, 56.28, -42.55)
CIE-LCHlch(31.47, 70.56, 322.91°)
OKLaboklab(43.44% 0.1464 -0.1194)
OKLCHoklch(43.44% 0.189 320.8)
XYZxyz(13.5005, 6.8516, 26.1973)
Luminance0.0685 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C178E #298E17
analogous
#40178E #7C178E #8E1765
triadic
#7C178E #8E7C17 #178E7C
tetradic
#7C178E #8E4017 #298E17 #17658E
square
#7C178E #8E4017 #298E17 #17658E
split-complementary
#7C178E #658E17 #178E40
monochromatic
#200625 #4E0E59 #7C178E #AA20C3 #C83FE0

Accessibility & contrast

On white

8.86
#7C178E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#7C178E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C178E
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C178E#FFFFFF#000000##FFFFFF
##7C178E1.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004391
Deuteranopia (green-blind)
#264D8B
Tritanopia (blue-blind)
#7D3254
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7c178e;
/* rgb */ color: rgb(124, 23, 142);
/* oklch */ color: oklch(43.4% 0.189 320.8);
Tailwind
colors: {
  custom: {
    50: '#a663b0',
    500: '#7c178e',
    950: '#000000',
  },
}
SCSS
$custom: #7c178e;
$custom-light: #a663b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c178e",
  "rgb": {
    "r": 124,
    "g": 23,
    "b": 142
  },
  "hsl": {
    "h": 290.924,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.43435,
    "c": 0.18898,
    "h": 320.8
  },
  "luminance": 0.06851
}

Semantic roles & 50–950 ramp

primary
#7C178E
secondary
#54C040
accent
#EF3954
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7C178E

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

Preview Lab → · Contrast checker → · Palette generator →

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