#7F1240#7F1240

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

Color values

HEX#7F1240
RGBrgb(127, 18, 64)
HSLhsl(335, 75%, 28%)
HSVhsv(335, 86%, 50%)
CMYKcmyk(0%, 85.8%, 49.6%, 50.2%)
CIE-LABlab(27.62, 47.21, 1.93)
CIE-LCHlch(27.62, 47.25, 2.34°)
OKLaboklab(39.5% 0.145 0.0054)
OKLCHoklch(39.5% 0.145 2.1)
XYZxyz(9.8950, 5.3162, 5.3546)
Luminance0.0532 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1240 #127F51
analogous
#7F1276 #7F1240 #7F1B12
triadic
#7F1240 #407F12 #12407F
tetradic
#7F1240 #767F12 #127F51 #1B127F
square
#7F1240 #767F12 #127F51 #1B127F
split-complementary
#7F1240 #127F1B #12767F
monochromatic
#1B040E #490A25 #7F1240 #B51A5B #E12B77

Accessibility & contrast

On white

10.18
#7F1240 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#7F1240 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1240
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1240#FFFFFF#000000##FFFFFF
##7F12401.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F3441
Deuteranopia (green-blind)
#4C493E
Tritanopia (blue-blind)
#8B0028
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #7f1240;
/* rgb */ color: rgb(127, 18, 64);
/* oklch */ color: oklch(39.5% 0.145 2.1);
Tailwind
colors: {
  custom: {
    50: '#aa5f74',
    500: '#7f1240',
    950: '#000000',
  },
}
SCSS
$custom: #7f1240;
$custom-light: #aa5f74;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1240",
  "rgb": {
    "r": 127,
    "g": 18,
    "b": 64
  },
  "hsl": {
    "h": 334.679,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.39502,
    "c": 0.14511,
    "h": 2.1
  },
  "luminance": 0.05315
}

Semantic roles & 50–950 ramp

primary
#7F1240
secondary
#38B580
accent
#F2A336
background
#FBF5F7
surface
#F6EAED
border
#D0C6C8
text
#110508
muted
#80797B

Preview Lab

Preview with #7F1240

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

Preview Lab → · Contrast checker → · Palette generator →

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