#7C157D#7C157D

#7C157D is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.2% C 0.177 H 327.7°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#7C157D
RGBrgb(124, 21, 125)
HSLhsl(299, 71%, 29%)
HSVhsv(299, 83%, 49%)
CMYKcmyk(0.8%, 83.2%, 0%, 51%)
CIE-LABlab(30.16, 53.80, -34.03)
CIE-LCHlch(30.16, 63.66, 327.68°)
OKLaboklab(42.16% 0.1497 -0.0945)
OKLCHoklch(42.16% 0.177 327.7)
XYZxyz(12.2819, 6.3030, 19.9678)
Luminance0.0630 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C157D #167D15
analogous
#48157D #7C157D #7D154A
triadic
#7C157D #7D7C15 #157D7C
tetradic
#7C157D #7D4815 #167D15 #154A7D
square
#7C157D #7D4815 #167D15 #154A7D
split-complementary
#7C157D #4A7D15 #157D48
monochromatic
#1A041A #480C49 #7C157D #B01EB1 #DB30DC

Accessibility & contrast

On white

9.29
#7C157D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C157D
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C157D#FFFFFF#000000##FFFFFF
##7C157D1.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F80
Deuteranopia (green-blind)
#344B7B
Tritanopia (blue-blind)
#80284A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7c157d;
/* rgb */ color: rgb(124, 21, 125);
/* oklch */ color: oklch(42.2% 0.177 327.7);
Tailwind
colors: {
  custom: {
    50: '#a662a3',
    500: '#7c157d',
    950: '#000000',
  },
}
SCSS
$custom: #7c157d;
$custom-light: #a662a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7c157d",
  "rgb": {
    "r": 124,
    "g": 21,
    "b": 125
  },
  "hsl": {
    "h": 299.423,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.42158,
    "c": 0.17704,
    "h": 327.7
  },
  "luminance": 0.06302
}

Semantic roles & 50–950 ramp

primary
#7C157D
secondary
#3DB23C
accent
#EE3A3C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7C157D

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

Preview Lab → · Contrast checker → · Palette generator →

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