#7C157C#7C157C

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

Color values

HEX#7C157C
RGBrgb(124, 21, 124)
HSLhsl(300, 71%, 28%)
HSVhsv(300, 83%, 49%)
CMYKcmyk(0%, 83.1%, 0%, 51.4%)
CIE-LABlab(30.10, 53.63, -33.50)
CIE-LCHlch(30.10, 63.23, 328.01°)
OKLaboklab(42.09% 0.1497 -0.093)
OKLCHoklch(42.09% 0.176 328.2)
XYZxyz(12.2183, 6.2776, 19.6330)
Luminance0.0628 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C157C #157C15
analogous
#48157C #7C157C #7C1548
triadic
#7C157C #7C7C15 #157C7C
tetradic
#7C157C #7C4815 #157C15 #15487C
square
#7C157C #7C4815 #157C15 #15487C
split-complementary
#7C157C #487C15 #157C48
monochromatic
#1A041A #480C48 #7C157C #B01EB0 #DC30DC

Accessibility & contrast

On white

9.31
#7C157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#7C157C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C157C
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C157C#FFFFFF#000000##FFFFFF
##7C157C1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7F
Deuteranopia (green-blind)
#344B7A
Tritanopia (blue-blind)
#802849
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7c157c;
/* rgb */ color: rgb(124, 21, 124);
/* oklch */ color: oklch(42.1% 0.176 328.2);
Tailwind
colors: {
  custom: {
    50: '#a662a2',
    500: '#7c157c',
    950: '#000000',
  },
}
SCSS
$custom: #7c157c;
$custom-light: #a662a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7c157c",
  "rgb": {
    "r": 124,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 300,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.42094,
    "c": 0.17626,
    "h": 328.2
  },
  "luminance": 0.06277
}

Semantic roles & 50–950 ramp

primary
#7C157C
secondary
#3CB13C
accent
#EE3A3A
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7C157C

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

Preview Lab → · Contrast checker → · Palette generator →

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