#7F175A#7F175A

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

Color values

HEX#7F175A
RGBrgb(127, 23, 90)
HSLhsl(321, 69%, 29%)
HSVhsv(321, 82%, 50%)
CMYKcmyk(0%, 81.9%, 29.1%, 50.2%)
CIE-LABlab(29.07, 48.70, -13.21)
CIE-LCHlch(29.07, 50.46, 344.82°)
OKLaboklab(40.88% 0.1484 -0.035)
OKLCHoklch(40.88% 0.152 346.7)
XYZxyz(10.9048, 5.8643, 10.2285)
Luminance0.0586 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F175A #177F3C
analogous
#70177F #7F175A #7F1726
triadic
#7F175A #5A7F17 #175A7F
tetradic
#7F175A #7F7017 #177F3C #17267F
square
#7F175A #7F7017 #177F3C #17267F
split-complementary
#7F175A #267F17 #177F70
monochromatic
#1A0512 #4B0E35 #7F175A #B3207F #DB36A0

Accessibility & contrast

On white

9.67
#7F175A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F175A
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F175A#FFFFFF#000000##FFFFFF
##7F175A1.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f175a;
/* rgb */ color: rgb(127, 23, 90);
/* oklch */ color: oklch(40.9% 0.152 346.7);
Tailwind
colors: {
  custom: {
    50: '#a86188',
    500: '#7f175a',
    950: '#000000',
  },
}
SCSS
$custom: #7f175a;
$custom-light: #a86188;
$custom-dark: #000000;
JSON
{
  "hex": "#7f175a",
  "rgb": {
    "r": 127,
    "g": 23,
    "b": 90
  },
  "hsl": {
    "h": 321.346,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.40876,
    "c": 0.15242,
    "h": 346.7
  },
  "luminance": 0.05863
}

Semantic roles & 50–950 ramp

primary
#7F175A
secondary
#3EB468
accent
#EC7A3C
background
#FAF6F8
surface
#F4EBF0
border
#CEC6CB
text
#10060B
muted
#7F7A7C

Preview Lab

Preview with #7F175A

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

Preview Lab → · Contrast checker → · Palette generator →

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