#7F1231#7F1231

#7F1231 is a dark, vivid pink. Relative luminance 0.052; OKLCH L 39.1% C 0.142 H 11.6°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#7F1231
RGBrgb(127, 18, 49)
HSLhsl(343, 75%, 28%)
HSVhsv(343, 86%, 50%)
CMYKcmyk(0%, 85.8%, 61.4%, 50.2%)
CIE-LABlab(27.21, 46.00, 11.51)
CIE-LCHlch(27.21, 47.42, 14.05°)
OKLaboklab(39.07% 0.1391 0.0285)
OKLCHoklch(39.07% 0.142 11.6)
XYZxyz(9.5241, 5.1678, 3.4011)
Luminance0.0517 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1231 #127F60
analogous
#7F1267 #7F1231 #7F2A12
triadic
#7F1231 #317F12 #12317F
tetradic
#7F1231 #677F12 #127F60 #2A127F
square
#7F1231 #677F12 #127F60 #2A127F
split-complementary
#7F1231 #127F2A #12677F
monochromatic
#1B040A #490A1C #7F1231 #B51A46 #E12B5E

Accessibility & contrast

On white

10.33
#7F1231 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#7F1231 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1231
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1231#FFFFFF#000000##FFFFFF
##7F12311.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#323231
Deuteranopia (green-blind)
#4E482E
Tritanopia (blue-blind)
#8C0020
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #7f1231;
/* rgb */ color: rgb(127, 18, 49);
/* oklch */ color: oklch(39.1% 0.142 11.6);
Tailwind
colors: {
  custom: {
    50: '#ab5e68',
    500: '#7f1231',
    950: '#000000',
  },
}
SCSS
$custom: #7f1231;
$custom-light: #ab5e68;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1231",
  "rgb": {
    "r": 127,
    "g": 18,
    "b": 49
  },
  "hsl": {
    "h": 342.936,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.39068,
    "c": 0.14194,
    "h": 11.6
  },
  "luminance": 0.05166
}

Semantic roles & 50–950 ramp

primary
#7F1231
secondary
#38B591
accent
#F2BC36
background
#FBF5F6
surface
#F6EAEB
border
#D0C6C6
text
#110506
muted
#80797A

Preview Lab

Preview with #7F1231

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

Preview Lab → · Contrast checker → · Palette generator →

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