#7E1238#7E1238

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

Color values

HEX#7E1238
RGBrgb(126, 18, 56)
HSLhsl(339, 75%, 28%)
HSVhsv(339, 86%, 49%)
CMYKcmyk(0%, 85.7%, 55.6%, 50.6%)
CIE-LABlab(27.17, 46.24, 6.68)
CIE-LCHlch(27.17, 46.72, 8.22°)
OKLaboklab(39.06% 0.1411 0.0172)
OKLCHoklch(39.06% 0.142 6.9)
XYZxyz(9.5352, 5.1551, 4.2336)
Luminance0.0515 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1238 #127E58
analogous
#7E126E #7E1238 #7E2212
triadic
#7E1238 #387E12 #12387E
tetradic
#7E1238 #6E7E12 #127E58 #22127E
square
#7E1238 #6E7E12 #127E58 #22127E
split-complementary
#7E1238 #127E22 #126E7E
monochromatic
#1B040C #480A20 #7E1238 #B41A50 #E12A6A

Accessibility & contrast

On white

10.34
#7E1238 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1238
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1238#FFFFFF#000000##FFFFFF
##7E12381.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#303339
Deuteranopia (green-blind)
#4C4835
Tritanopia (blue-blind)
#8A0023
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #7e1238;
/* rgb */ color: rgb(126, 18, 56);
/* oklch */ color: oklch(39.1% 0.142 6.9);
Tailwind
colors: {
  custom: {
    50: '#a95e6e',
    500: '#7e1238',
    950: '#000000',
  },
}
SCSS
$custom: #7e1238;
$custom-light: #a95e6e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1238",
  "rgb": {
    "r": 126,
    "g": 18,
    "b": 56
  },
  "hsl": {
    "h": 338.889,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.39062,
    "c": 0.14217,
    "h": 6.9
  },
  "luminance": 0.05154
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7E1238

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

Preview Lab → · Contrast checker → · Palette generator →

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