#7C156C#7C156C

#7C156C is a dark, vivid purple. Relative luminance 0.059; OKLCH L 41.1% C 0.164 H 335.6°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#7C156C
RGBrgb(124, 21, 108)
HSLhsl(309, 71%, 28%)
HSVhsv(309, 83%, 49%)
CMYKcmyk(0%, 83.1%, 12.9%, 51.4%)
CIE-LABlab(29.17, 51.06, -24.79)
CIE-LCHlch(29.17, 56.76, 334.11°)
OKLaboklab(41.13% 0.1497 -0.0678)
OKLCHoklch(41.13% 0.164 335.6)
XYZxyz(11.2873, 5.9052, 14.7298)
Luminance0.0590 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C156C #157C25
analogous
#58157C #7C156C #7C1539
triadic
#7C156C #6C7C15 #156C7C
tetradic
#7C156C #7C5815 #157C25 #15397C
square
#7C156C #7C5815 #157C25 #15397C
split-complementary
#7C156C #397C15 #157C58
monochromatic
#1A0417 #480C3E #7C156C #B01E9A #DC30C1

Accessibility & contrast

On white

9.63
#7C156C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#7C156C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C156C
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C156C#FFFFFF#000000##FFFFFF
##7C156C1.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163B6E
Deuteranopia (green-blind)
#3D4A6A
Tritanopia (blue-blind)
#831E40
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7c156c;
/* rgb */ color: rgb(124, 21, 108);
/* oklch */ color: oklch(41.1% 0.164 335.6);
Tailwind
colors: {
  custom: {
    50: '#a56196',
    500: '#7c156c',
    950: '#000000',
  },
}
SCSS
$custom: #7c156c;
$custom-light: #a56196;
$custom-dark: #000000;
JSON
{
  "hex": "#7c156c",
  "rgb": {
    "r": 124,
    "g": 21,
    "b": 108
  },
  "hsl": {
    "h": 309.32,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.41131,
    "c": 0.16429,
    "h": 335.6
  },
  "luminance": 0.05904
}

Semantic roles & 50–950 ramp

primary
#7C156C
secondary
#3CB14E
accent
#EE563A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7C156C

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

Preview Lab → · Contrast checker → · Palette generator →

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