#7E1248#7E1248

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

Color values

HEX#7E1248
RGBrgb(126, 18, 72)
HSLhsl(330, 75%, 28%)
HSVhsv(330, 86%, 49%)
CMYKcmyk(0%, 85.7%, 42.9%, 50.6%)
CIE-LABlab(27.68, 47.72, -3.40)
CIE-LCHlch(27.68, 47.84, 355.93°)
OKLaboklab(39.59% 0.147 -0.0083)
OKLCHoklch(39.59% 0.147 356.8)
XYZxyz(9.9909, 5.3374, 6.6338)
Luminance0.0534 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1248 #127E48
analogous
#7E127E #7E1248 #7E1212
triadic
#7E1248 #487E12 #12487E
tetradic
#7E1248 #7E7E12 #127E48 #12127E
square
#7E1248 #7E7E12 #127E48 #12127E
split-complementary
#7E1248 #127E12 #127E7E
monochromatic
#1B040F #480A29 #7E1248 #B41A67 #E12A85

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E1248#FFFFFF#000000##FFFFFF
##7E12481.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)
#2C3549
Deuteranopia (green-blind)
#494846
Tritanopia (blue-blind)
#89002C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #7e1248;
/* rgb */ color: rgb(126, 18, 72);
/* oklch */ color: oklch(39.6% 0.147 356.8);
Tailwind
colors: {
  custom: {
    50: '#a85f7a',
    500: '#7e1248',
    950: '#000000',
  },
}
SCSS
$custom: #7e1248;
$custom-light: #a85f7a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1248",
  "rgb": {
    "r": 126,
    "g": 18,
    "b": 72
  },
  "hsl": {
    "h": 330,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.39594,
    "c": 0.1472,
    "h": 356.8
  },
  "luminance": 0.05336
}

Semantic roles & 50–950 ramp

primary
#7E1248
secondary
#38B476
accent
#F29436
background
#FAF5F7
surface
#F4EAED
border
#CEC6C8
text
#100509
muted
#7F797B

Preview Lab

Preview with #7E1248

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

Preview Lab → · Contrast checker → · Palette generator →

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