#7F175C#7F175C

#7F175C is a dark, vivid pink. Relative luminance 0.059; OKLCH L 41.0% C 0.154 H 345.6°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#7F175C
RGBrgb(127, 23, 92)
HSLhsl(320, 69%, 29%)
HSVhsv(320, 82%, 50%)
CMYKcmyk(0%, 81.9%, 27.6%, 50.2%)
CIE-LABlab(29.16, 48.96, -14.39)
CIE-LCHlch(29.16, 51.03, 343.62°)
OKLaboklab(40.97% 0.1488 -0.0382)
OKLCHoklch(40.97% 0.154 345.6)
XYZxyz(10.9911, 5.8988, 10.6829)
Luminance0.0590 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F175C #177F3A
analogous
#6E177F #7F175C #7F1728
triadic
#7F175C #5C7F17 #175C7F
tetradic
#7F175C #7F6E17 #177F3A #17287F
square
#7F175C #7F6E17 #177F3A #17287F
split-complementary
#7F175C #287F17 #177F6E
monochromatic
#1A0513 #4B0E36 #7F175C #B32082 #DB36A3

Accessibility & contrast

On white

9.63
#7F175C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#7F175C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F175C
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F175C#FFFFFF#000000##FFFFFF
##7F175C1.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#263A5E
Deuteranopia (green-blind)
#464B5A
Tritanopia (blue-blind)
#881438
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7f175c;
/* rgb */ color: rgb(127, 23, 92);
/* oklch */ color: oklch(41.0% 0.154 345.6);
Tailwind
colors: {
  custom: {
    50: '#a8618a',
    500: '#7f175c',
    950: '#000000',
  },
}
SCSS
$custom: #7f175c;
$custom-light: #a8618a;
$custom-dark: #000000;
JSON
{
  "hex": "#7f175c",
  "rgb": {
    "r": 127,
    "g": 23,
    "b": 92
  },
  "hsl": {
    "h": 320.192,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.40969,
    "c": 0.15361,
    "h": 345.6
  },
  "luminance": 0.05898
}

Semantic roles & 50–950 ramp

primary
#7F175C
secondary
#3EB466
accent
#EC773C
background
#FAF6F8
surface
#F4EBF0
border
#CEC6CB
text
#10060B
muted
#7F7A7C

Preview Lab

Preview with #7F175C

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

Preview Lab → · Contrast checker → · Palette generator →

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