#7C2178#7C2178

#7C2178 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.8% C 0.161 H 329.8°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#7C2178
RGBrgb(124, 33, 120)
HSLhsl(303, 58%, 31%)
HSVhsv(303, 73%, 49%)
CMYKcmyk(0%, 73.4%, 3.2%, 51.4%)
CIE-LABlab(31.18, 49.16, -29.26)
CIE-LCHlch(31.18, 57.21, 329.24°)
OKLaboklab(42.79% 0.139 -0.0807)
OKLCHoklch(42.79% 0.161 329.8)
XYZxyz(12.2461, 6.7298, 18.4196)
Luminance0.0673 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2178 #217C25
analogous
#52217C #7C2178 #7C214A
triadic
#7C2178 #787C21 #21787C
tetradic
#7C2178 #7C5221 #217C25 #214A7C
square
#7C2178 #7C5221 #217C25 #214A7C
split-complementary
#7C2178 #4A7C21 #217C52
monochromatic
#1B071A #4C1449 #7C2178 #AC2EA7 #CF49C9

Accessibility & contrast

On white

8.95
#7C2178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#7C2178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2178
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2178#FFFFFF#000000##FFFFFF
##7C21781.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16427A
Deuteranopia (green-blind)
#3B4E76
Tritanopia (blue-blind)
#812D4A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7c2178;
/* rgb */ color: rgb(124, 33, 120);
/* oklch */ color: oklch(42.8% 0.161 329.8);
Tailwind
colors: {
  custom: {
    50: '#a5669f',
    500: '#7c2178',
    950: '#000000',
  },
}
SCSS
$custom: #7c2178;
$custom-light: #a5669f;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2178",
  "rgb": {
    "r": 124,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 302.637,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.4279,
    "c": 0.16074,
    "h": 329.8
  },
  "luminance": 0.06729
}

Semantic roles & 50–950 ramp

primary
#7C2178
secondary
#4AAF4E
accent
#E14D47
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7C2178

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

Preview Lab → · Contrast checker → · Palette generator →

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