#7E1252#7E1252

#7E1252 is a dark, vivid pink. Relative luminance 0.055; OKLCH L 40.0% C 0.152 H 350.6°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#7E1252
RGBrgb(126, 18, 82)
HSLhsl(324, 75%, 28%)
HSVhsv(324, 86%, 49%)
CMYKcmyk(0%, 85.7%, 34.9%, 50.6%)
CIE-LABlab(28.06, 48.82, -9.50)
CIE-LCHlch(28.06, 49.73, 348.99°)
OKLaboklab(40% 0.1498 -0.0247)
OKLCHoklch(40% 0.152 350.6)
XYZxyz(10.3441, 5.4787, 8.4938)
Luminance0.0548 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1252 #127E3E
analogous
#74127E #7E1252 #7E121C
triadic
#7E1252 #527E12 #12527E
tetradic
#7E1252 #7E7412 #127E3E #121C7E
square
#7E1252 #7E7412 #127E3E #121C7E
split-complementary
#7E1252 #1C7E12 #127E74
monochromatic
#1B0411 #480A2F #7E1252 #B41A75 #E12A96

Accessibility & contrast

On white

10.02
#7E1252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#7E1252 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1252
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1252#FFFFFF#000000##FFFFFF
##7E12521.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#283654
Deuteranopia (green-blind)
#474950
Tritanopia (blue-blind)
#880631
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #7e1252;
/* rgb */ color: rgb(126, 18, 82);
/* oklch */ color: oklch(40.0% 0.152 350.6);
Tailwind
colors: {
  custom: {
    50: '#a85f82',
    500: '#7e1252',
    950: '#000000',
  },
}
SCSS
$custom: #7e1252;
$custom-light: #a85f82;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1252",
  "rgb": {
    "r": 126,
    "g": 18,
    "b": 82
  },
  "hsl": {
    "h": 324.444,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.39997,
    "c": 0.15186,
    "h": 350.6
  },
  "luminance": 0.05477
}

Semantic roles & 50–950 ramp

primary
#7E1252
secondary
#38B46A
accent
#F28336
background
#FAF6F7
surface
#F4EBEE
border
#CEC6C9
text
#10050A
muted
#7F7A7C

Preview Lab

Preview with #7E1252

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

Preview Lab → · Contrast checker → · Palette generator →

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