#7E1258#7E1258

#7E1258 is a dark, vivid pink. Relative luminance 0.056; OKLCH L 40.3% C 0.155 H 347.1°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#7E1258
RGBrgb(126, 18, 88)
HSLhsl(321, 75%, 28%)
HSVhsv(321, 86%, 49%)
CMYKcmyk(0%, 85.7%, 30.2%, 50.6%)
CIE-LABlab(28.31, 49.54, -13.08)
CIE-LCHlch(28.31, 51.24, 345.22°)
OKLaboklab(40.26% 0.1512 -0.0346)
OKLCHoklch(40.26% 0.155 347.1)
XYZxyz(10.5825, 5.5741, 9.7492)
Luminance0.0557 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1258 #127E38
analogous
#6E127E #7E1258 #7E1222
triadic
#7E1258 #587E12 #12587E
tetradic
#7E1258 #7E6E12 #127E38 #12227E
square
#7E1258 #7E6E12 #127E38 #12227E
split-complementary
#7E1258 #227E12 #127E6E
monochromatic
#1B0413 #480A33 #7E1258 #B41A7D #E12AA0

Accessibility & contrast

On white

9.93
#7E1258 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#7E1258 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1258
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1258#FFFFFF#000000##FFFFFF
##7E12581.009.932.119.93
#FFFFFF9.931.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25375A
Deuteranopia (green-blind)
#454956
Tritanopia (blue-blind)
#870C34
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7e1258;
/* rgb */ color: rgb(126, 18, 88);
/* oklch */ color: oklch(40.3% 0.155 347.1);
Tailwind
colors: {
  custom: {
    50: '#a85f87',
    500: '#7e1258',
    950: '#000000',
  },
}
SCSS
$custom: #7e1258;
$custom-light: #a85f87;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1258",
  "rgb": {
    "r": 126,
    "g": 18,
    "b": 88
  },
  "hsl": {
    "h": 321.111,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.40264,
    "c": 0.15514,
    "h": 347.1
  },
  "luminance": 0.05573
}

Semantic roles & 50–950 ramp

primary
#7E1258
secondary
#38B464
accent
#F27836
background
#FAF6F8
surface
#F4EBEF
border
#CEC6CA
text
#10050B
muted
#7F7A7C

Preview Lab

Preview with #7E1258

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

Preview Lab → · Contrast checker → · Palette generator →

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