#7D157F#7D157F

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

Color values

HEX#7D157F
RGBrgb(125, 21, 127)
HSLhsl(299, 72%, 29%)
HSVhsv(299, 83%, 50%)
CMYKcmyk(1.6%, 83.5%, 0%, 50.2%)
CIE-LABlab(30.47, 54.34, -34.79)
CIE-LCHlch(30.47, 64.53, 327.37°)
OKLaboklab(42.45% 0.1507 -0.0967)
OKLCHoklch(42.45% 0.179 327.3)
XYZxyz(12.5562, 6.4295, 20.6543)
Luminance0.0643 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D157F #177F15
analogous
#48157F #7D157F #7F154C
triadic
#7D157F #7F7D15 #157F7D
tetradic
#7D157F #7F4815 #177F15 #154C7F
square
#7D157F #7F4815 #177F15 #154C7F
split-complementary
#7D157F #4C7F15 #157F48
monochromatic
#1A041A #490C4A #7D157F #B11EB4 #DA31DD

Accessibility & contrast

On white

9.19
#7D157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#7D157F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D157F
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D157F#FFFFFF#000000##FFFFFF
##7D157F1.009.192.299.19
#FFFFFF9.191.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F82
Deuteranopia (green-blind)
#334C7D
Tritanopia (blue-blind)
#81294B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7d157f;
/* rgb */ color: rgb(125, 21, 127);
/* oklch */ color: oklch(42.4% 0.179 327.3);
Tailwind
colors: {
  custom: {
    50: '#a662a4',
    500: '#7d157f',
    950: '#000000',
  },
}
SCSS
$custom: #7d157f;
$custom-light: #a662a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7d157f",
  "rgb": {
    "r": 125,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 298.868,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.4245,
    "c": 0.17905,
    "h": 327.3
  },
  "luminance": 0.06429
}

Semantic roles & 50–950 ramp

primary
#7D157F
secondary
#3EB43C
accent
#EE393D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D157F

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

Preview Lab → · Contrast checker → · Palette generator →

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