#7F1538#7F1538

#7F1538 is a dark, vivid pink. Relative luminance 0.053; OKLCH L 39.5% C 0.141 H 7.8°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#7F1538
RGBrgb(127, 21, 56)
HSLhsl(340, 72%, 29%)
HSVhsv(340, 83%, 50%)
CMYKcmyk(0%, 83.5%, 55.9%, 50.2%)
CIE-LABlab(27.67, 45.71, 7.41)
CIE-LCHlch(27.67, 46.31, 9.20°)
OKLaboklab(39.47% 0.1393 0.019)
OKLCHoklch(39.47% 0.141 7.8)
XYZxyz(9.7353, 5.3353, 4.2578)
Luminance0.0533 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1538 #157F5C
analogous
#7F156D #7F1538 #7F2715
triadic
#7F1538 #387F15 #15387F
tetradic
#7F1538 #6D7F15 #157F5C #27157F
square
#7F1538 #6D7F15 #157F5C #27157F
split-complementary
#7F1538 #157F27 #156D7F
monochromatic
#1A040C #4A0C21 #7F1538 #B41E4F #DD316A

Accessibility & contrast

On white

10.16
#7F1538 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#7F1538 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1538
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1538#FFFFFF#000000##FFFFFF
##7F15381.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#323439
Deuteranopia (green-blind)
#4E4935
Tritanopia (blue-blind)
#8B0025
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #7f1538;
/* rgb */ color: rgb(127, 21, 56);
/* oklch */ color: oklch(39.5% 0.141 7.8);
Tailwind
colors: {
  custom: {
    50: '#aa5f6e',
    500: '#7f1538',
    950: '#000000',
  },
}
SCSS
$custom: #7f1538;
$custom-light: #aa5f6e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1538",
  "rgb": {
    "r": 127,
    "g": 21,
    "b": 56
  },
  "hsl": {
    "h": 340.189,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.39465,
    "c": 0.14057,
    "h": 7.8
  },
  "luminance": 0.05334
}

Semantic roles & 50–950 ramp

primary
#7F1538
secondary
#3CB48C
accent
#EEB339
background
#FBF5F6
surface
#F6EAEB
border
#D0C6C6
text
#110507
muted
#80797A

Preview Lab

Preview with #7F1538

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

Preview Lab → · Contrast checker → · Palette generator →

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