#7D156C#7D156C

#7D156C is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.3% C 0.165 H 336.1°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#7D156C
RGBrgb(125, 21, 108)
HSLhsl(310, 71%, 29%)
HSVhsv(310, 83%, 49%)
CMYKcmyk(0%, 83.2%, 13.6%, 51%)
CIE-LABlab(29.36, 51.29, -24.47)
CIE-LCHlch(29.36, 56.83, 334.49°)
OKLaboklab(41.3% 0.1507 -0.0668)
OKLCHoklch(41.3% 0.165 336.1)
XYZxyz(11.4326, 5.9801, 14.7366)
Luminance0.0598 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D156C #157D26
analogous
#5A157D #7D156C #7D1538
triadic
#7D156C #6C7D15 #156C7D
tetradic
#7D156C #7D5A15 #157D26 #15387D
square
#7D156C #7D5A15 #157D26 #15387D
split-complementary
#7D156C #387D15 #157D5A
monochromatic
#1A0417 #490C3F #7D156C #B11E99 #DC30C0

Accessibility & contrast

On white

9.56
#7D156C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#7D156C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D156C
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D156C#FFFFFF#000000##FFFFFF
##7D156C1.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173B6E
Deuteranopia (green-blind)
#3E4B6A
Tritanopia (blue-blind)
#841E40
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7d156c;
/* rgb */ color: rgb(125, 21, 108);
/* oklch */ color: oklch(41.3% 0.165 336.1);
Tailwind
colors: {
  custom: {
    50: '#a66196',
    500: '#7d156c',
    950: '#000000',
  },
}
SCSS
$custom: #7d156c;
$custom-light: #a66196;
$custom-dark: #000000;
JSON
{
  "hex": "#7d156c",
  "rgb": {
    "r": 125,
    "g": 21,
    "b": 108
  },
  "hsl": {
    "h": 309.808,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.41302,
    "c": 0.16485,
    "h": 336.1
  },
  "luminance": 0.05979
}

Semantic roles & 50–950 ramp

primary
#7D156C
secondary
#3CB24F
accent
#EE573A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7D156C

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

Preview Lab → · Contrast checker → · Palette generator →

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