#7E175B#7E175B

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

Color values

HEX#7E175B
RGBrgb(126, 23, 91)
HSLhsl(320, 69%, 29%)
HSVhsv(320, 82%, 49%)
CMYKcmyk(0%, 81.7%, 27.8%, 50.6%)
CIE-LABlab(28.92, 48.57, -14.12)
CIE-LCHlch(28.92, 50.58, 343.79°)
OKLaboklab(40.74% 0.1476 -0.0375)
OKLCHoklch(40.74% 0.152 345.7)
XYZxyz(10.7994, 5.8050, 10.4472)
Luminance0.0580 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E175B #177E3A
analogous
#6E177E #7E175B #7E1728
triadic
#7E175B #5B7E17 #175B7E
tetradic
#7E175B #7E6E17 #177E3A #17287E
square
#7E175B #7E6E17 #177E3A #17287E
split-complementary
#7E175B #287E17 #177E6E
monochromatic
#1A0513 #4A0E36 #7E175B #B22080 #DA35A2

Accessibility & contrast

On white

9.72
#7E175B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E175B
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E175B#FFFFFF#000000##FFFFFF
##7E175B1.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26395D
Deuteranopia (green-blind)
#454A59
Tritanopia (blue-blind)
#871437
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7e175b;
/* rgb */ color: rgb(126, 23, 91);
/* oklch */ color: oklch(40.7% 0.152 345.7);
Tailwind
colors: {
  custom: {
    50: '#a76189',
    500: '#7e175b',
    950: '#000000',
  },
}
SCSS
$custom: #7e175b;
$custom-light: #a76189;
$custom-dark: #000000;
JSON
{
  "hex": "#7e175b",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 91
  },
  "hsl": {
    "h": 320.388,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.40744,
    "c": 0.15233,
    "h": 345.7
  },
  "luminance": 0.05804
}

Semantic roles & 50–950 ramp

primary
#7E175B
secondary
#3EB366
accent
#EC783C
background
#FAF6F8
surface
#F4EBF0
border
#CEC6CB
text
#10060B
muted
#7F7A7C

Preview Lab

Preview with #7E175B

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

Preview Lab → · Contrast checker → · Palette generator →

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