#7E1254#7E1254

#7E1254 is a dark, vivid pink. Relative luminance 0.055; OKLCH L 40.1% C 0.153 H 349.4°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#7E1254
RGBrgb(126, 18, 84)
HSLhsl(323, 75%, 28%)
HSVhsv(323, 86%, 49%)
CMYKcmyk(0%, 85.7%, 33.3%, 50.6%)
CIE-LABlab(28.14, 49.05, -10.70)
CIE-LCHlch(28.14, 50.21, 347.70°)
OKLaboklab(40.08% 0.1503 -0.028)
OKLCHoklch(40.08% 0.153 349.4)
XYZxyz(10.4213, 5.5096, 8.9005)
Luminance0.0551 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1254 #127E3C
analogous
#72127E #7E1254 #7E121E
triadic
#7E1254 #547E12 #12547E
tetradic
#7E1254 #7E7212 #127E3C #121E7E
square
#7E1254 #7E7212 #127E3C #121E7E
split-complementary
#7E1254 #1E7E12 #127E72
monochromatic
#1B0412 #480A30 #7E1254 #B41A78 #E12A9A

Accessibility & contrast

On white

9.99
#7E1254 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1254
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1254#FFFFFF#000000##FFFFFF
##7E12541.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#273656
Deuteranopia (green-blind)
#464952
Tritanopia (blue-blind)
#880832
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #7e1254;
/* rgb */ color: rgb(126, 18, 84);
/* oklch */ color: oklch(40.1% 0.153 349.4);
Tailwind
colors: {
  custom: {
    50: '#a85f84',
    500: '#7e1254',
    950: '#000000',
  },
}
SCSS
$custom: #7e1254;
$custom-light: #a85f84;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1254",
  "rgb": {
    "r": 126,
    "g": 18,
    "b": 84
  },
  "hsl": {
    "h": 323.333,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.40083,
    "c": 0.15293,
    "h": 349.4
  },
  "luminance": 0.05508
}

Semantic roles & 50–950 ramp

primary
#7E1254
secondary
#38B468
accent
#F27F36
background
#FAF6F8
surface
#F4EBEF
border
#CEC6CA
text
#10050A
muted
#7F7A7C

Preview Lab

Preview with #7E1254

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

Preview Lab → · Contrast checker → · Palette generator →

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