#7F1238#7F1238

#7F1238 is a dark, vivid pink. Relative luminance 0.052; OKLCH L 39.3% C 0.143 H 7.2°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#7F1238
RGBrgb(127, 18, 56)
HSLhsl(339, 75%, 28%)
HSVhsv(339, 86%, 50%)
CMYKcmyk(0%, 85.8%, 55.9%, 50.2%)
CIE-LABlab(27.38, 46.52, 7.01)
CIE-LCHlch(27.38, 47.05, 8.57°)
OKLaboklab(39.26% 0.1419 0.018)
OKLCHoklch(39.26% 0.143 7.2)
XYZxyz(9.6834, 5.2316, 4.2405)
Luminance0.0523 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1238 #127F59
analogous
#7F126E #7F1238 #7F2312
triadic
#7F1238 #387F12 #12387F
tetradic
#7F1238 #6E7F12 #127F59 #23127F
square
#7F1238 #6E7F12 #127F59 #23127F
split-complementary
#7F1238 #127F23 #126E7F
monochromatic
#1B040C #490A20 #7F1238 #B51A50 #E12B6A

Accessibility & contrast

On white

10.26
#7F1238 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#7F1238 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1238
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1238#FFFFFF#000000##FFFFFF
##7F12381.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#313339
Deuteranopia (green-blind)
#4D4835
Tritanopia (blue-blind)
#8B0023
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #7f1238;
/* rgb */ color: rgb(127, 18, 56);
/* oklch */ color: oklch(39.3% 0.143 7.2);
Tailwind
colors: {
  custom: {
    50: '#aa5e6e',
    500: '#7f1238',
    950: '#000000',
  },
}
SCSS
$custom: #7f1238;
$custom-light: #aa5e6e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1238",
  "rgb": {
    "r": 127,
    "g": 18,
    "b": 56
  },
  "hsl": {
    "h": 339.083,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.39255,
    "c": 0.14305,
    "h": 7.2
  },
  "luminance": 0.0523
}

Semantic roles & 50–950 ramp

primary
#7F1238
secondary
#38B589
accent
#F2B036
background
#FBF5F6
surface
#F6EAEB
border
#D0C6C6
text
#110507
muted
#80797A

Preview Lab

Preview with #7F1238

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

Preview Lab → · Contrast checker → · Palette generator →

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