#7E175C#7E175C

#7E175C is a dark, vivid pink. Relative luminance 0.058; OKLCH L 40.8% C 0.153 H 345.2°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#7E175C
RGBrgb(126, 23, 92)
HSLhsl(320, 69%, 29%)
HSVhsv(320, 82%, 49%)
CMYKcmyk(0%, 81.7%, 27%, 50.6%)
CIE-LABlab(28.96, 48.70, -14.71)
CIE-LCHlch(28.96, 50.88, 343.20°)
OKLaboklab(40.79% 0.1478 -0.0391)
OKLCHoklch(40.79% 0.153 345.2)
XYZxyz(10.8428, 5.8223, 10.6760)
Luminance0.0582 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E175C #177E39
analogous
#6D177E #7E175C #7E1728
triadic
#7E175C #5C7E17 #175C7E
tetradic
#7E175C #7E6D17 #177E39 #17287E
square
#7E175C #7E6D17 #177E39 #17287E
split-complementary
#7E175C #287E17 #177E6D
monochromatic
#1A0513 #4A0E36 #7E175C #B22082 #DA35A4

Accessibility & contrast

On white

9.70
#7E175C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E175C
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E175C#FFFFFF#000000##FFFFFF
##7E175C1.009.702.169.70
#FFFFFF9.701.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e175c;
/* rgb */ color: rgb(126, 23, 92);
/* oklch */ color: oklch(40.8% 0.153 345.2);
Tailwind
colors: {
  custom: {
    50: '#a7618a',
    500: '#7e175c',
    950: '#000000',
  },
}
SCSS
$custom: #7e175c;
$custom-light: #a7618a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e175c",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 92
  },
  "hsl": {
    "h": 319.806,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.40791,
    "c": 0.15293,
    "h": 345.2
  },
  "luminance": 0.05821
}

Semantic roles & 50–950 ramp

primary
#7E175C
secondary
#3EB365
accent
#EC763C
background
#FAF6F8
surface
#F4EBF0
border
#CEC6CB
text
#10060B
muted
#7F7A7C

Preview Lab

Preview with #7E175C

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

Preview Lab → · Contrast checker → · Palette generator →

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