#7E175A#7E175A

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

Color values

HEX#7E175A
RGBrgb(126, 23, 90)
HSLhsl(321, 69%, 29%)
HSVhsv(321, 82%, 49%)
CMYKcmyk(0%, 81.7%, 28.6%, 50.6%)
CIE-LABlab(28.87, 48.44, -13.53)
CIE-LCHlch(28.87, 50.30, 344.39°)
OKLaboklab(40.7% 0.1474 -0.0359)
OKLCHoklch(40.7% 0.152 346.3)
XYZxyz(10.7566, 5.7878, 10.2216)
Luminance0.0579 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E175A #177E3B
analogous
#6F177E #7E175A #7E1726
triadic
#7E175A #5A7E17 #175A7E
tetradic
#7E175A #7E6F17 #177E3B #17267E
square
#7E175A #7E6F17 #177E3B #17267E
split-complementary
#7E175A #267E17 #177E6F
monochromatic
#1A0512 #4A0E35 #7E175A #B2207F #DA35A1

Accessibility & contrast

On white

9.73
#7E175A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E175A
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E175A#FFFFFF#000000##FFFFFF
##7E175A1.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27395C
Deuteranopia (green-blind)
#464A58
Tritanopia (blue-blind)
#871337
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7e175a;
/* rgb */ color: rgb(126, 23, 90);
/* oklch */ color: oklch(40.7% 0.152 346.3);
Tailwind
colors: {
  custom: {
    50: '#a76188',
    500: '#7e175a',
    950: '#000000',
  },
}
SCSS
$custom: #7e175a;
$custom-light: #a76188;
$custom-dark: #000000;
JSON
{
  "hex": "#7e175a",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 90
  },
  "hsl": {
    "h": 320.971,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.40697,
    "c": 0.15173,
    "h": 346.3
  },
  "luminance": 0.05787
}

Semantic roles & 50–950 ramp

primary
#7E175A
secondary
#3EB367
accent
#EC793C
background
#FAF6F8
surface
#F4EBF0
border
#CEC6CB
text
#10060B
muted
#7F7A7C

Preview Lab

Preview with #7E175A

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

Preview Lab → · Contrast checker → · Palette generator →

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