#7F173A#7F173A

#7F173A is a dark, vivid pink. Relative luminance 0.054; OKLCH L 39.7% C 0.139 H 6.8°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#7F173A
RGBrgb(127, 23, 58)
HSLhsl(340, 69%, 29%)
HSVhsv(340, 82%, 50%)
CMYKcmyk(0%, 81.9%, 54.3%, 50.2%)
CIE-LABlab(27.93, 45.29, 6.42)
CIE-LCHlch(27.93, 45.74, 8.07°)
OKLaboklab(39.67% 0.1382 0.0166)
OKLCHoklch(39.67% 0.139 6.8)
XYZxyz(9.8234, 5.4317, 4.5333)
Luminance0.0543 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F173A #177F5C
analogous
#7F176E #7F173A #7F2817
triadic
#7F173A #3A7F17 #173A7F
tetradic
#7F173A #6E7F17 #177F5C #28177F
square
#7F173A #6E7F17 #177F5C #28177F
split-complementary
#7F173A #177F28 #176E7F
monochromatic
#1A050C #4B0E22 #7F173A #B32052 #DB366D

Accessibility & contrast

On white

10.07
#7F173A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#7F173A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F173A
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F173A#FFFFFF#000000##FFFFFF
##7F173A1.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#33353B
Deuteranopia (green-blind)
#4E4937
Tritanopia (blue-blind)
#8B0026
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #7f173a;
/* rgb */ color: rgb(127, 23, 58);
/* oklch */ color: oklch(39.7% 0.139 6.8);
Tailwind
colors: {
  custom: {
    50: '#aa606f',
    500: '#7f173a',
    950: '#000000',
  },
}
SCSS
$custom: #7f173a;
$custom-light: #aa606f;
$custom-dark: #000000;
JSON
{
  "hex": "#7f173a",
  "rgb": {
    "r": 127,
    "g": 23,
    "b": 58
  },
  "hsl": {
    "h": 339.808,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.39675,
    "c": 0.13919,
    "h": 6.8
  },
  "luminance": 0.0543
}

Semantic roles & 50–950 ramp

primary
#7F173A
secondary
#3EB48C
accent
#ECB13C
background
#FBF6F6
surface
#F6EBEC
border
#D0C6C7
text
#110507
muted
#807A7A

Preview Lab

Preview with #7F173A

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

Preview Lab → · Contrast checker → · Palette generator →

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