#7E156C#7E156C

#7E156C is a dark, vivid pink. Relative luminance 0.061; OKLCH L 41.5% C 0.165 H 336.5°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#7E156C
RGBrgb(126, 21, 108)
HSLhsl(310, 71%, 29%)
HSVhsv(310, 83%, 49%)
CMYKcmyk(0%, 83.3%, 14.3%, 50.6%)
CIE-LABlab(29.55, 51.52, -24.16)
CIE-LCHlch(29.55, 56.90, 334.87°)
OKLaboklab(41.47% 0.1517 -0.0659)
OKLCHoklch(41.47% 0.165 336.5)
XYZxyz(11.5793, 6.0558, 14.7435)
Luminance0.0605 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E156C #157E27
analogous
#5C157E #7E156C #7E1538
triadic
#7E156C #6C7E15 #156C7E
tetradic
#7E156C #7E5C15 #157E27 #15387E
square
#7E156C #7E5C15 #157E27 #15387E
split-complementary
#7E156C #387E15 #157E5C
monochromatic
#1A0416 #4A0C3F #7E156C #B21E99 #DD31BF

Accessibility & contrast

On white

9.50
#7E156C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#7E156C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E156C
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E156C#FFFFFF#000000##FFFFFF
##7E156C1.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183C6E
Deuteranopia (green-blind)
#3E4B6A
Tritanopia (blue-blind)
#851E40
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7e156c;
/* rgb */ color: rgb(126, 21, 108);
/* oklch */ color: oklch(41.5% 0.165 336.5);
Tailwind
colors: {
  custom: {
    50: '#a76196',
    500: '#7e156c',
    950: '#000000',
  },
}
SCSS
$custom: #7e156c;
$custom-light: #a76196;
$custom-dark: #000000;
JSON
{
  "hex": "#7e156c",
  "rgb": {
    "r": 126,
    "g": 21,
    "b": 108
  },
  "hsl": {
    "h": 310.286,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.41474,
    "c": 0.16539,
    "h": 336.5
  },
  "luminance": 0.06055
}

Semantic roles & 50–950 ramp

primary
#7E156C
secondary
#3CB350
accent
#EE593A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7E156C

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

Preview Lab → · Contrast checker → · Palette generator →

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