#7E165C#7E165C

#7E165C is a dark, vivid pink. Relative luminance 0.058; OKLCH L 40.7% C 0.154 H 345.1°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#7E165C
RGBrgb(126, 22, 92)
HSLhsl(320, 70%, 29%)
HSVhsv(320, 83%, 49%)
CMYKcmyk(0%, 82.5%, 27%, 50.6%)
CIE-LABlab(28.86, 48.99, -14.86)
CIE-LCHlch(28.86, 51.20, 343.12°)
OKLaboklab(40.72% 0.1487 -0.0396)
OKLCHoklch(40.72% 0.154 345.1)
XYZxyz(10.8233, 5.7834, 10.6695)
Luminance0.0578 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E165C #167E38
analogous
#6C167E #7E165C #7E1628
triadic
#7E165C #5C7E16 #165C7E
tetradic
#7E165C #7E6C16 #167E38 #16287E
square
#7E165C #7E6C16 #167E38 #16287E
split-complementary
#7E165C #287E16 #167E6C
monochromatic
#1A0513 #4A0D36 #7E165C #B21F82 #DB33A4

Accessibility & contrast

On white

9.74
#7E165C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#7E165C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E165C
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E165C#FFFFFF#000000##FFFFFF
##7E165C1.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25395E
Deuteranopia (green-blind)
#454A5A
Tritanopia (blue-blind)
#871438
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7e165c;
/* rgb */ color: rgb(126, 22, 92);
/* oklch */ color: oklch(40.7% 0.154 345.1);
Tailwind
colors: {
  custom: {
    50: '#a7618a',
    500: '#7e165c',
    950: '#000000',
  },
}
SCSS
$custom: #7e165c;
$custom-light: #a7618a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e165c",
  "rgb": {
    "r": 126,
    "g": 22,
    "b": 92
  },
  "hsl": {
    "h": 319.615,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.40718,
    "c": 0.1539,
    "h": 345.1
  },
  "luminance": 0.05782
}

Semantic roles & 50–950 ramp

primary
#7E165C
secondary
#3DB363
accent
#ED753B
background
#FAF6F8
surface
#F4EBF0
border
#CEC6CB
text
#10050B
muted
#7F7A7C

Preview Lab

Preview with #7E165C

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

Preview Lab → · Contrast checker → · Palette generator →

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