#7F175B#7F175B

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

Color values

HEX#7F175B
RGBrgb(127, 23, 91)
HSLhsl(321, 69%, 29%)
HSVhsv(321, 82%, 50%)
CMYKcmyk(0%, 81.9%, 28.3%, 50.2%)
CIE-LABlab(29.11, 48.83, -13.80)
CIE-LCHlch(29.11, 50.74, 344.22°)
OKLaboklab(40.92% 0.1486 -0.0366)
OKLCHoklch(40.92% 0.153 346.2)
XYZxyz(10.9476, 5.8814, 10.4542)
Luminance0.0588 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F175B #177F3B
analogous
#6F177F #7F175B #7F1727
triadic
#7F175B #5B7F17 #175B7F
tetradic
#7F175B #7F6F17 #177F3B #17277F
square
#7F175B #7F6F17 #177F3B #17277F
split-complementary
#7F175B #277F17 #177F6F
monochromatic
#1A0513 #4B0E36 #7F175B #B32080 #DB36A2

Accessibility & contrast

On white

9.65
#7F175B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F175B
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F175B#FFFFFF#000000##FFFFFF
##7F175B1.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27395D
Deuteranopia (green-blind)
#464B59
Tritanopia (blue-blind)
#881437
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7f175b;
/* rgb */ color: rgb(127, 23, 91);
/* oklch */ color: oklch(40.9% 0.153 346.2);
Tailwind
colors: {
  custom: {
    50: '#a86189',
    500: '#7f175b',
    950: '#000000',
  },
}
SCSS
$custom: #7f175b;
$custom-light: #a86189;
$custom-dark: #000000;
JSON
{
  "hex": "#7f175b",
  "rgb": {
    "r": 127,
    "g": 23,
    "b": 91
  },
  "hsl": {
    "h": 320.769,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.40922,
    "c": 0.153,
    "h": 346.2
  },
  "luminance": 0.0588
}

Semantic roles & 50–950 ramp

primary
#7F175B
secondary
#3EB467
accent
#EC793C
background
#FAF6F8
surface
#F4EBF0
border
#CEC6CB
text
#10060B
muted
#7F7A7C

Preview Lab

Preview with #7F175B

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

Preview Lab → · Contrast checker → · Palette generator →

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