#7C157A#7C157A

#7C157A is a dark, vivid purple. Relative luminance 0.062; OKLCH L 42.0% C 0.175 H 329.0°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#7C157A
RGBrgb(124, 21, 122)
HSLhsl(301, 71%, 28%)
HSVhsv(301, 83%, 49%)
CMYKcmyk(0%, 83.1%, 1.6%, 51.4%)
CIE-LABlab(29.98, 53.29, -32.44)
CIE-LCHlch(29.98, 62.39, 328.67°)
OKLaboklab(41.97% 0.1498 -0.0899)
OKLCHoklch(41.97% 0.175 329)
XYZxyz(12.0931, 6.2275, 18.9737)
Luminance0.0623 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C157A #157C17
analogous
#4A157C #7C157A #7C1546
triadic
#7C157A #7A7C15 #157A7C
tetradic
#7C157A #7C4A15 #157C17 #15467C
square
#7C157A #7C4A15 #157C17 #15467C
split-complementary
#7C157A #467C15 #157C4A
monochromatic
#1A041A #480C47 #7C157A #B01EAD #DC30D9

Accessibility & contrast

On white

9.35
#7C157A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#7C157A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C157A
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C157A#FFFFFF#000000##FFFFFF
##7C157A1.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7D
Deuteranopia (green-blind)
#354B78
Tritanopia (blue-blind)
#812748
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7c157a;
/* rgb */ color: rgb(124, 21, 122);
/* oklch */ color: oklch(42.0% 0.175 329.0);
Tailwind
colors: {
  custom: {
    50: '#a661a1',
    500: '#7c157a',
    950: '#000000',
  },
}
SCSS
$custom: #7c157a;
$custom-light: #a661a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7c157a",
  "rgb": {
    "r": 124,
    "g": 21,
    "b": 122
  },
  "hsl": {
    "h": 301.165,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.41967,
    "c": 0.17472,
    "h": 329
  },
  "luminance": 0.06227
}

Semantic roles & 50–950 ramp

primary
#7C157A
secondary
#3CB13E
accent
#EE3E3A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7C157A

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

Preview Lab → · Contrast checker → · Palette generator →

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