#7C157F#7C157F

#7C157F is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.3% C 0.179 H 326.9°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#7C157F
RGBrgb(124, 21, 127)
HSLhsl(298, 72%, 29%)
HSVhsv(298, 83%, 50%)
CMYKcmyk(2.4%, 83.5%, 0%, 50.2%)
CIE-LABlab(30.29, 54.14, -35.09)
CIE-LCHlch(30.29, 64.52, 327.05°)
OKLaboklab(42.29% 0.1496 -0.0976)
OKLCHoklch(42.29% 0.179 326.9)
XYZxyz(12.4109, 6.3546, 20.6474)
Luminance0.0635 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C157F #187F15
analogous
#47157F #7C157F #7F154D
triadic
#7C157F #7F7C15 #157F7C
tetradic
#7C157F #7F4715 #187F15 #154D7F
square
#7C157F #7F4715 #187F15 #154D7F
split-complementary
#7C157F #4D7F15 #157F47
monochromatic
#1A041A #490C4A #7C157F #AF1EB4 #D831DD

Accessibility & contrast

On white

9.25
#7C157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#7C157F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C157F
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C157F#FFFFFF#000000##FFFFFF
##7C157F1.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F82
Deuteranopia (green-blind)
#324C7D
Tritanopia (blue-blind)
#80294B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7c157f;
/* rgb */ color: rgb(124, 21, 127);
/* oklch */ color: oklch(42.3% 0.179 326.9);
Tailwind
colors: {
  custom: {
    50: '#a662a4',
    500: '#7c157f',
    950: '#000000',
  },
}
SCSS
$custom: #7c157f;
$custom-light: #a662a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7c157f",
  "rgb": {
    "r": 124,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 298.302,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.42287,
    "c": 0.1786,
    "h": 326.9
  },
  "luminance": 0.06354
}

Semantic roles & 50–950 ramp

primary
#7C157F
secondary
#3FB43C
accent
#EE393F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7C157F

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

Preview Lab → · Contrast checker → · Palette generator →

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