#7E175F#7E175F

#7E175F is a dark, vivid pink. Relative luminance 0.059; OKLCH L 40.9% C 0.155 H 343.5°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#7E175F
RGBrgb(126, 23, 95)
HSLhsl(318, 69%, 29%)
HSVhsv(318, 82%, 49%)
CMYKcmyk(0%, 81.7%, 24.6%, 50.6%)
CIE-LABlab(29.10, 49.11, -16.46)
CIE-LCHlch(29.10, 51.79, 341.47°)
OKLaboklab(40.94% 0.1484 -0.044)
OKLCHoklch(40.94% 0.155 343.5)
XYZxyz(10.9766, 5.8758, 11.3803)
Luminance0.0587 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E175F #177E36
analogous
#6A177E #7E175F #7E172C
triadic
#7E175F #5F7E17 #175F7E
tetradic
#7E175F #7E6A17 #177E36 #172C7E
square
#7E175F #7E6A17 #177E36 #172C7E
split-complementary
#7E175F #2C7E17 #177E6A
monochromatic
#1A0514 #4A0E38 #7E175F #B22086 #DA35A9

Accessibility & contrast

On white

9.66
#7E175F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#7E175F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E175F
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E175F#FFFFFF#000000##FFFFFF
##7E175F1.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#243A61
Deuteranopia (green-blind)
#444B5D
Tritanopia (blue-blind)
#87173A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7e175f;
/* rgb */ color: rgb(126, 23, 95);
/* oklch */ color: oklch(40.9% 0.155 343.5);
Tailwind
colors: {
  custom: {
    50: '#a7618c',
    500: '#7e175f',
    950: '#000000',
  },
}
SCSS
$custom: #7e175f;
$custom-light: #a7618c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e175f",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 95
  },
  "hsl": {
    "h": 318.058,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.40935,
    "c": 0.15479,
    "h": 343.5
  },
  "luminance": 0.05875
}

Semantic roles & 50–950 ramp

primary
#7E175F
secondary
#3EB361
accent
#EC713C
background
#FAF6F8
surface
#F4EBF0
border
#CEC6CB
text
#10060C
muted
#7F7A7D

Preview Lab

Preview with #7E175F

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

Preview Lab → · Contrast checker → · Palette generator →

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