#7C157B#7C157B

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

Color values

HEX#7C157B
RGBrgb(124, 21, 123)
HSLhsl(301, 71%, 28%)
HSVhsv(301, 83%, 49%)
CMYKcmyk(0%, 83.1%, 0.8%, 51.4%)
CIE-LABlab(30.04, 53.46, -32.97)
CIE-LCHlch(30.04, 62.81, 328.34°)
OKLaboklab(42.03% 0.1498 -0.0914)
OKLCHoklch(42.03% 0.175 328.6)
XYZxyz(12.1554, 6.2524, 19.3017)
Luminance0.0625 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C157B #157C16
analogous
#49157C #7C157B #7C1547
triadic
#7C157B #7B7C15 #157B7C
tetradic
#7C157B #7C4915 #157C16 #15477C
square
#7C157B #7C4915 #157C16 #15477C
split-complementary
#7C157B #477C15 #157C49
monochromatic
#1A041A #480C47 #7C157B #B01EAF #DC30DA

Accessibility & contrast

On white

9.33
#7C157B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C157B
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C157B#FFFFFF#000000##FFFFFF
##7C157B1.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7E
Deuteranopia (green-blind)
#354B79
Tritanopia (blue-blind)
#802749
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7c157b;
/* rgb */ color: rgb(124, 21, 123);
/* oklch */ color: oklch(42.0% 0.175 328.6);
Tailwind
colors: {
  custom: {
    50: '#a662a1',
    500: '#7c157b',
    950: '#000000',
  },
}
SCSS
$custom: #7c157b;
$custom-light: #a662a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7c157b",
  "rgb": {
    "r": 124,
    "g": 21,
    "b": 123
  },
  "hsl": {
    "h": 300.583,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.4203,
    "c": 0.17549,
    "h": 328.6
  },
  "luminance": 0.06251
}

Semantic roles & 50–950 ramp

primary
#7C157B
secondary
#3CB13D
accent
#EE3C3A
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7C157B

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

Preview Lab → · Contrast checker → · Palette generator →

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