#7C1978#7C1978

#7C1978 is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.1% C 0.170 H 329.9°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#7C1978
RGBrgb(124, 25, 120)
HSLhsl(302, 66%, 29%)
HSVhsv(302, 80%, 49%)
CMYKcmyk(0%, 79.8%, 3.2%, 51.4%)
CIE-LABlab(30.25, 51.83, -30.74)
CIE-LCHlch(30.25, 60.27, 329.33°)
OKLaboklab(42.12% 0.1467 -0.085)
OKLCHoklch(42.12% 0.17 329.9)
XYZxyz(12.0499, 6.3374, 18.3542)
Luminance0.0634 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1978 #197C1D
analogous
#4F197C #7C1978 #7C1947
triadic
#7C1978 #787C19 #19787C
tetradic
#7C1978 #7C4F19 #197C1D #19477C
square
#7C1978 #7C4F19 #197C1D #19477C
split-complementary
#7C1978 #477C19 #197C4F
monochromatic
#190519 #490F47 #7C1978 #AF23A9 #D738D1

Accessibility & contrast

On white

9.26
#7C1978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#7C1978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C1978
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1978#FFFFFF#000000##FFFFFF
##7C19781.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#083F7A
Deuteranopia (green-blind)
#384C76
Tritanopia (blue-blind)
#812848
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7c1978;
/* rgb */ color: rgb(124, 25, 120);
/* oklch */ color: oklch(42.1% 0.170 329.9);
Tailwind
colors: {
  custom: {
    50: '#a5639f',
    500: '#7c1978',
    950: '#000000',
  },
}
SCSS
$custom: #7c1978;
$custom-light: #a5639f;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1978",
  "rgb": {
    "r": 124,
    "g": 25,
    "b": 120
  },
  "hsl": {
    "h": 302.424,
    "s": 66.443,
    "l": 29.216
  },
  "oklch": {
    "l": 0.4212,
    "c": 0.16951,
    "h": 329.9
  },
  "luminance": 0.06336
}

Semantic roles & 50–950 ramp

primary
#7C1978
secondary
#40B045
accent
#E9453E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7C1978

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

Preview Lab → · Contrast checker → · Palette generator →

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