#7F173B#7F173B

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

Color values

HEX#7F173B
RGBrgb(127, 23, 59)
HSLhsl(339, 69%, 29%)
HSVhsv(339, 82%, 50%)
CMYKcmyk(0%, 81.9%, 53.5%, 50.2%)
CIE-LABlab(27.96, 45.37, 5.79)
CIE-LCHlch(27.96, 45.74, 7.27°)
OKLaboklab(39.7% 0.1386 0.0151)
OKLCHoklch(39.7% 0.139 6.2)
XYZxyz(9.8491, 5.4420, 4.6686)
Luminance0.0544 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F173B #177F5B
analogous
#7F176F #7F173B #7F2717
triadic
#7F173B #3B7F17 #173B7F
tetradic
#7F173B #6F7F17 #177F5B #27177F
square
#7F173B #6F7F17 #177F5B #27177F
split-complementary
#7F173B #177F27 #176F7F
monochromatic
#1A050C #4B0E23 #7F173B #B32053 #DB366F

Accessibility & contrast

On white

10.06
#7F173B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F173B
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F173B#FFFFFF#000000##FFFFFF
##7F173B1.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#32353C
Deuteranopia (green-blind)
#4E4939
Tritanopia (blue-blind)
#8B0027
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #7f173b;
/* rgb */ color: rgb(127, 23, 59);
/* oklch */ color: oklch(39.7% 0.139 6.2);
Tailwind
colors: {
  custom: {
    50: '#aa6070',
    500: '#7f173b',
    950: '#000000',
  },
}
SCSS
$custom: #7f173b;
$custom-light: #aa6070;
$custom-dark: #000000;
JSON
{
  "hex": "#7f173b",
  "rgb": {
    "r": 127,
    "g": 23,
    "b": 59
  },
  "hsl": {
    "h": 339.231,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.39704,
    "c": 0.1394,
    "h": 6.2
  },
  "luminance": 0.05441
}

Semantic roles & 50–950 ramp

primary
#7F173B
secondary
#3EB48B
accent
#ECAF3C
background
#FBF6F6
surface
#F6EBEC
border
#D0C6C7
text
#110507
muted
#807A7A

Preview Lab

Preview with #7F173B

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

Preview Lab → · Contrast checker → · Palette generator →

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