#7E156B#7E156B

#7E156B is a dark, vivid pink. Relative luminance 0.060; OKLCH L 41.4% C 0.165 H 337.0°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#7E156B
RGBrgb(126, 21, 107)
HSLhsl(311, 71%, 29%)
HSVhsv(311, 83%, 49%)
CMYKcmyk(0%, 83.3%, 15.1%, 50.6%)
CIE-LABlab(29.50, 51.37, -23.60)
CIE-LCHlch(29.50, 56.53, 335.32°)
OKLaboklab(41.42% 0.1516 -0.0643)
OKLCHoklch(41.42% 0.165 337)
XYZxyz(11.5264, 6.0346, 14.4648)
Luminance0.0603 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E156B #157E28
analogous
#5D157E #7E156B #7E1537
triadic
#7E156B #6B7E15 #156B7E
tetradic
#7E156B #7E5D15 #157E28 #15377E
square
#7E156B #7E5D15 #157E28 #15377E
split-complementary
#7E156B #377E15 #157E5D
monochromatic
#1A0416 #4A0C3E #7E156B #B21E98 #DD31BE

Accessibility & contrast

On white

9.52
#7E156B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E156B
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E156B#FFFFFF#000000##FFFFFF
##7E156B1.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#193B6D
Deuteranopia (green-blind)
#3F4B69
Tritanopia (blue-blind)
#851D40
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7e156b;
/* rgb */ color: rgb(126, 21, 107);
/* oklch */ color: oklch(41.4% 0.165 337.0);
Tailwind
colors: {
  custom: {
    50: '#a76195',
    500: '#7e156b',
    950: '#000000',
  },
}
SCSS
$custom: #7e156b;
$custom-light: #a76195;
$custom-dark: #000000;
JSON
{
  "hex": "#7e156b",
  "rgb": {
    "r": 126,
    "g": 21,
    "b": 107
  },
  "hsl": {
    "h": 310.857,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.41419,
    "c": 0.1647,
    "h": 337
  },
  "luminance": 0.06033
}

Semantic roles & 50–950 ramp

primary
#7E156B
secondary
#3CB351
accent
#EE5A3A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7E156B

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

Preview Lab → · Contrast checker → · Palette generator →

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